FMOD stops calling pcmreadcallback


(Pavel) #1

I do createStream with FMOD_OPENUSER | FMOD_3D and I specify only pcmreadcallback.
For some reason randomly fmod stops calling my callback. In my case the code is written in such a way that it expects sound samples to be eventually drained out, but sometimes it all deadlocks because fmod stops extracting samples.
How can I figure out what’s going on?

(no idea what category I should choose)
define FMOD_VERSION 0x00011004


(Brett Paterson) #2

Hi, it could be the ‘length’ you set in your stream callback. Did the stream stop? (ie Channel::isPlaying). Setting a length of -1 should get it to stream continuously. Check the custom_stream example in the examples folder.