0
0

Hello FMODists,

I’ve implemented an iOS app using FMOD Studio and ran into a glitch with restarting an event instance after an incoming call interruption. I set the audio session category and interruption callback like this:

[code:2aq4ckrr]
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
[[AVAudioSession sharedInstance] setDelegate:self];
[/code:2aq4ckrr]

And the handlers simply do:

[code:2aq4ckrr]
– (void)pause
{
FMOD_Studio_EventInstance_SetPaused(_currentEventInstance, TRUE);
}

  • (void)resume
    {
    FMOD_Studio_EventInstance_SetPaused(_currentEventInstance, FALSE);
    }
    [/code:2aq4ckrr]

The audio pauses but it it won’t resume. I double checked and update timer is still running so I’m stumped.

  • You must to post comments
1
0

In your interruption handler try using FMOD::System::mixerSuspend and FMOD::System::mixerResume, this will completely tear down and rebuild the audio interface while preserving the state of all your objects.

  • You must to post comments
0
0

So I tried the API 3d.app in the Studio Examples and it shows the same behavior.

I suspect it’s a library bug.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.