I’ve been converting some old code using FMOD 3 to FMOD Ex. The migration was mostly painless, except for one problem that took me days to solve. To make a long story short, this code, which is being called in a channel-end-callback, does not work:
fsys->playSound(FMOD_CHANNEL_REUSE, stream, true, channel);
This code works perfectly:
fsys->playSound(FMOD_CHANNEL_REUSE, stream, false, channel);
Basically, if playSound has paused = true, any attempt to set the position fails (returns FMOD_OK, but has no effect), the position is permanently set to zero, and no further operations (including playback) work. Everything returns FMOD_OK, but does not actually do anything. If I use playSound with paused = false, and then pause it myself, everything works perfectly fine.
- aether asked 8 years ago
- You must login to post comments
Please login first to submit.