Answered
0
0

i use fmod 1.0.7.0 in my android game, i want use FMOD_RESULT eResut = m_pLowLevelSystem->mixerSuspend(); to stop the music when the appgame enter to background, but this function return FMMOD_ERR_OUT_DRIVERCALL,and the muisc still playing when the game in background, which question maybe here?

  • You must to post comments
Best Answer
0
0

This is because the thread you’re calling mixerSuspend from is not attached to the Java VM. Native threads must be attached to the Java VM, please call JavaVM::AttachCurrentThread before calling mixerSuspend.

FYI, we’ve made the logging output of this error more descriptive in 1.08.

  • You must to post comments
0
0

i use fmodL.so, logcat output another log:OutputAudioTrack::suspend : JavaVM::GetEnv returned -2

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.