Table of Contents

Class AudioReader

Namespace
Bonsai.Audio
Assembly
Bonsai.Audio.dll

Represents an operator that generates a sequence of buffered audio samples from an uncompressed RIFF/WAV file.

public class AudioReader : Source<Mat>
Inheritance
AudioReader
Inherited Members

Properties

BufferLength

Gets or sets the length of the sample buffer, in milliseconds.

FileName

Gets or sets the name of the WAV file.

SampleRate

Gets or sets the sample rate, in Hz, used to playback the sample buffers. If it is zero, samples will be played at the rate specified in the RIFF/WAV file header.

Methods

Generate()

Generates a sequence of buffered audio samples from the specified WAV file.

Generate<TSource>(IObservable<TSource>)

Generates a sequence of buffered audio samples from the specified WAV file, where each new buffer is emitted only when an observable sequence emits a notification.