# FMOD Studio interruption on iOS (library bug?)

**URL:** <https://qa.fmod.com/t/fmod-studio-interruption-on-ios-library-bug/11294>\
**Category:** FMOD Studio\
**Created:** [February 18, 2014, 3:51pm UTC](https://qa.fmod.com/t/fmod-studio-interruption-on-ios-library-bug/11294 "2014-02-18T15:51:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnF](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@JohnF](https://qa.fmod.com/u/JohnF)\
**Post date:** [February 18, 2014, 3:51pm UTC](https://qa.fmod.com/t/fmod-studio-interruption-on-ios-library-bug/11294/1 "2014-02-18T15:51:02Z")

</div>

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:

```auto
        [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
        [[AVAudioSession sharedInstance] setDelegate:self];
```

And the handlers simply do:

```auto
- (void)pause
{
        FMOD_Studio_EventInstance_SetPaused(_currentEventInstance, TRUE);
}

- (void)resume
{
            FMOD_Studio_EventInstance_SetPaused(_currentEventInstance, FALSE);
}
```

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

---

<div class="post-metadata">

**Author:** ![JohnF](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@JohnF](https://qa.fmod.com/u/JohnF)\
**Post date:** [February 19, 2014, 7:33pm UTC](https://qa.fmod.com/t/fmod-studio-interruption-on-ios-library-bug/11294/2 "2014-02-19T19:33:04Z")

</div>

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

I suspect it’s a library bug.

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [February 24, 2014, 5:34am UTC](https://qa.fmod.com/t/fmod-studio-interruption-on-ios-library-bug/11294/3 "2014-02-24T05:34:16Z")

</div>

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.
