i use fmod 220.127.116.11 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?
i use fmodL.so, logcat output another log:OutputAudioTrack::suspend : JavaVM::GetEnv returned -2
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.