0
0

I am finding that my app’s audio cuts out about 25% of the time when resuming a suspension. This occurs after switching between applications on iOS 7, and when switching between applications or going to/from the home screen in iOS 5/6. I have been unable to restore the audio without restarting the app. I’m having this problem with FMOD Ex 4.44.27 stable.

I want users to be able to listen to their own music ingame instead of the default music, so the extra driver data is set as follows:

[code:1ba8y53j]sessionCategory = FMOD_IPHONE_SESSIONCATEGORY_AMBIENTSOUND
forceMixWithOthers = TRUE[/code:1ba8y53j]

applicationDidBecomeActive in the app delegate calls:

[code:1ba8y53j]FMOD_IPhone_RestoreAudioSession();
FMOD_IPhone_MixWithOtherAudio(TRUE);[/code:1ba8y53j]
The call to FMOD_IPhone_MixWithOtherAudio(bool) cause this issue to arise. However a colleague who used to work on this app tells me that FMOD_IPhone_MixWithOtherAudio call fixed another issue where audio ceased to work after an alarm, so I am reluctant to remove it.

Please let me know if more information is needed, thank you. I would like advice on what might be causing the problem. FMOD Ex does not seem to be throwing any errors or warnings when this occurs.

  • You must to post comments
0
0

If you use the ‘ambient sound’ category you don’t need ‘force mix with others’, it’s implied.

Also I would recommend removing:
FMOD_IPhone_RestoreAudioSession();
FMOD_IPhone_MixWithOtherAudio(TRUE);

They were both work arounds for iOS bugs that should be fixed now.

  • You must to post comments
0
0

I removed those two calls as that workaround is indeed no longer needed and was causing the problem… Sorted, thank you :)

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.