0
0

Hi,

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.

Thanks

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

The solution you suggested is exactly what I would recommend.

  • You must to post comments
0
0

Hi

When my app goes into suspend mode I stop all channels but FMOD still uses 2-3% CPU time how can I avoid this?

Is there a native equivalent to mFMODAudioDevice.stop(); mFMODAudioDevice.start() ?

Best,
Tom

  • You must to post comments
0
0

At this stage the only way to truly halt the OpenSL output mode is by shutting FMOD down.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

There are no known issues regarding leaked memory from shutting down FMOD or OpenSL over and over. If you discover any such problems please report them to support@fmod.org for investigation.

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.