okasugandi
20-03-2010 15:48:06
Hello stickymango,
I would like to seek help from you,
I have implemented both OgreOgg and OgreTheora well, I have succeeded playing movie in my application, but I have a problem producing the sound from the movie.
From the documentation of OgreTheora, OgreTheora will call this listener function:
every frame if i am not mistaken.
The problem is, with just a pair of float** and int, how I can play this sound? Can I use OgreOgg to play this?
Thank you stickymango for your help!
Nb. I posted this message in OgreOgg forum not in Theora forum because I think the Theora's author (Kreso) have made the interface to play the sound with above function, and how the sound is being played is up to the user.
I would like to seek help from you,
I have implemented both OgreOgg and OgreTheora well, I have succeeded playing movie in my application, but I have a problem producing the sound from the movie.
From the documentation of OgreTheora, OgreTheora will call this listener function:
//! A function that the TheoraVideoClip object calls once more audio packets are decoded
/*!
\param data contains one or two channels of float PCM data in the range [-1,1]
\param nSamples contains the number of samples that the data parameter contains in each channel
*/
virtual void insertData(float** data,int nSamples)=0;
every frame if i am not mistaken.
The problem is, with just a pair of float** and int, how I can play this sound? Can I use OgreOgg to play this?
Thank you stickymango for your help!
Nb. I posted this message in OgreOgg forum not in Theora forum because I think the Theora's author (Kreso) have made the interface to play the sound with above function, and how the sound is being played is up to the user.