I have a problem using the native version of Android FMOD SDK. When I’m in sleep mode on my device, FMOD still continues to run and consumes high CPU cycles that drains the battery. Is there any functions to call on Onstart/onstop callbacks to stop/pause FMOD threads to save battery life? The solution could be to stop FMOD and restart on resume but I would have to reload all sounds. It would take too much time.
- eneko asked 5 years ago
I found a solution. But not sure it’s a good one. I call pSystem->setOutput(FMOD_OUTPUTTYPE_AUDIOTRACK); to select use of AudioTrack and after I use mFMODAudioDevice.start(); and mFMODAudioDevice.stop(); to suspend and resume FMOD. It seems to save lots of CPU cycles in sleep mode.
- eneko answered 5 years ago
Thank you very much for your answer. Your suggestion solved my problem. 😀
If creating and destroying of the fmod-system is done repeatedly, are there any known issues like memory-leaks caused by OpenSL? I ask, because the APP should be stable as possible.
Please login first to submit.