Hi,
I’m having issues with my game where audio stops when an app enters the background, but doesn’t resume when it is active again. Anyone know what code or function to use to call code when the program is active again, so i can resume the audio?
Hi,
In Xcode open up the AppController.mm, there’s a method called applicationWillEnterForeground, comment out the following line there (line 821)
pNeedToRestoreIPhoneAudioSession = true;
This is because unity is now using FMOD instead of OpenAL, this hack seems to solve the MultiTask Audio problem, but I’m not sure if it introduces anymore problems or not! I don’t have any problem using this hack I found! But use it on your own as I don’t even know what happens on older devices, iPod touch, etc.