Is there a way to configure FMOD so the user’s music still plays while app specific sound effects still work?
Right now if I have music playing on my iPod/iPhone when launching my app using FMOD, the music fades out as the app starts.
I’d like to support both cases of full sound (effects & music) and just effects to allow the user to listen to their own playlists in the background. In this case, I wouldn’t be using any streams or MP3’s. Just short sounds.
- nullterm asked 9 years ago
You need to use one of the audio session categories that permit mixing iPod audio with game sounds. Take a look at the FMOD docs, in the iPhone platform specific section, there is a part called "mixing with the iPod".
Also note after System::init the "otherAudioPlaying" value of FMOD_IPHONE_EXTRADRIVERDATA will be set to let you know if the iPod is playing (so you can choose if you want your background music to play).
I was also able to set things up so when the user changes the audio options (sound on/off, music on/off) the FMOD system will release and re-init with the applicable session which will stop the user’s music (if appropriate).
Game music – FMOD_IPHONE_SESSIONCATEGORY_SOLOAMBIENTSOUND
User music – FMOD_IPHONE_SESSIONCATEGORY_AMBIENTSOUND
- nullterm answered 9 years ago
Please login first to submit.