class MAGES::Recorder::WaveDecoder¶
Overview¶
Represents a decoder for the WAVE file format. More…
class WaveDecoder: public MAGES::Recorder::IDecoder { public: // properties int SampleRate; int Channels; PCM.Format Format; BinaryReader Reader; ulong Position; // methods void Deinit(); void Init(); System.Array Read(int numSamples, out int numSamplesRead); };
Inherited Members¶
public: // properties int SampleRate; int Channels; PCM.Format Format; BinaryReader Reader; ulong Position; // methods void Init(); void Deinit(); System.Array Read(int numSamples, out int numSamplesRead);
Detailed Documentation¶
Represents a decoder for the WAVE file format.
Properties¶
int SampleRate
Gets the sample rate of the audio data.
int Channels
Gets the number of channels.
PCM.Format Format
Gets the format of the audio data.
BinaryReader Reader
Gets or sets the reader.
ulong Position
Gets or sets the position (in samples).
Methods¶
void Deinit()
Deinitializes the decoder.
void Init()
Initializes the decoder.
System.Array Read(int numSamples, out int numSamplesRead)
Read a number of samples.
Parameters:
numSamples |
The number of samples to read. |
numSamplesRead |
The number of samples read. |
Returns:
The samples.