search for: pastreamcallbackflag

Displaying 1 result from an estimated 1 matches for "pastreamcallbackflag".

Did you mean: pastreamcallbackflags
2013 Dec 05
1
playback of opus files using portaudio
...say what is wrong or provide me link to any code which can play opus file written in c/c++(light). I tried to see some open source(vlc opus play) but was unable to follow. int MyCallback(const void* input, void* output, unsigned long frameCount, const PaStreamCallbackTimeInfo* paInfo, PaStreamCallbackFlags paCallbacks, void *userData ) { OurData *data=(OurData*) userData; opus_int16* out=(opus_int16 *)output; int thisSize=frameCount; int smpls_decoded; while (thisSize>0) { smpls_decoded=op_read(data->sndFile,out,thisSize,NULL); out+=data->channels*smpls_decoded; thisSize-=data->cha...