Having a problem where the pcmreadcallback is still executed after FMOD::release has been called and FMOD::Channel::stop has been called on the channel playing the sound.
Is there anyway to;
- Synchronously release the sound and channel, waiting for any outstanding queued callbacks to be completed.
- Guarantee the ordering of release / stop and the callback?
We have a class which wraps a sound and channel and implements the callback (this ptr passed via user data). This behaviour is causing a rare case where the callback is executed after the class has been destroyed.