Theora Playback Library  1.1.0
Public Member Functions | Public Attributes | List of all members
TheoraAudioInterface Class Referenceabstract

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...
 
TheoraVideoClipmClip
 Pointer to the parent TheoraVideoClip object. More...
 

Detailed Description

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

Constructor & Destructor Documentation

TheoraAudioInterface::TheoraAudioInterface ( TheoraVideoClip owner,
int  nChannels,
int  freq 
)
virtual TheoraAudioInterface::~TheoraAudioInterface ( )
virtual

Member Function Documentation

virtual void TheoraAudioInterface::insertData ( float *  data,
int  nSamples 
)
pure virtual

A function that the TheoraVideoClip object calls once more audio packets are decoded.

Parameters
datacontains one or two channels of float PCM data in the range [-1,1]
nSamplescontains the number of samples that the data parameter contains in each channel

Member Data Documentation

TheoraVideoClip* TheoraAudioInterface::mClip

Pointer to the parent TheoraVideoClip object.

int TheoraAudioInterface::mFreq

PCM frequency, usualy 44100 Hz.

int TheoraAudioInterface::mNumChannels

Mono or stereo.


The documentation for this class was generated from the following file: