![]() |
Theora Playback Library
1.0.0
|
Public Member Functions | |
TheoraAudioInterface (TheoraVideoClip *owner, int nChannels, int freq) | |
virtual | ~TheoraAudioInterface () |
virtual void | insertData (float *data, int nSamples)=0 |
A function that the TheoraVideoClip object calls once more audio packets are decoded. More... | |
Public Attributes | |
int | mFreq |
PCM frequency, usualy 44100 Hz. More... | |
int | mNumChannels |
Mono or stereo. More... | |
TheoraVideoClip * | mClip |
Pointer to the parent TheoraVideoClip object. More... | |
This is the class that serves as an interface between the library's audio output and the audio playback library of your choice. The class gets mono or stereo PCM data in in floating point data
TheoraAudioInterface::TheoraAudioInterface | ( | TheoraVideoClip * | owner, |
int | nChannels, | ||
int | freq | ||
) |
|
virtual |
|
pure virtual |
A function that the TheoraVideoClip object calls once more audio packets are decoded.
data | contains one or two channels of float PCM data in the range [-1,1] |
nSamples | contains the number of samples that the data parameter contains in each channel |
TheoraVideoClip* TheoraAudioInterface::mClip |
Pointer to the parent TheoraVideoClip object.
int TheoraAudioInterface::mFreq |
PCM frequency, usualy 44100 Hz.
int TheoraAudioInterface::mNumChannels |
Mono or stereo.