# Ingame Ads Sound Auto Break Problem

**URL:** https://qa.fmod.com/t/ingame-ads-sound-auto-break-problem/17353
**Category:** FMOD Engine
**Tags:** ios, android, unity
**Created:** [June 16, 2021, 7:14am UTC](https://qa.fmod.com/t/ingame-ads-sound-auto-break-problem/17353 "2021-06-16T07:14:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![baturalpcetin](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/baturalpcetin/32/2977_2.png) [@baturalpcetin](https://qa.fmod.com/u/baturalpcetin)
#### Post date: [June 16, 2021, 7:14am UTC](https://qa.fmod.com/t/ingame-ads-sound-auto-break-problem/17353/1 "2021-06-16T07:14:25Z")

</div>

When you watch an ad ingame, the sound of the ad is just fine and nothing seems to be wrong. however, when the advertisement ends, minigame of the advertisement starts and the player is directed into App Store through the minigame that they are playing, the sound of the game completely gets muted and player either have to kill the application or put it on pause then reopen it so that they could get the sound back plus nothing seems to be wrong with the ingame sound settings

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [June 18, 2021, 7:21am UTC](https://qa.fmod.com/t/ingame-ads-sound-auto-break-problem/17353/2 "2021-06-18T07:21:36Z")

</div>

To recreate your issue I’ll need a little more information, can you please tell me what version of Unity and FMOD you are using, and also confirm that the issue is ocurring on both iOS and Android?

---

<div class="post-metadata">

### Author: ![sanekmin](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sanekmin](https://qa.fmod.com/u/sanekmin)
#### Post date: [June 29, 2021, 5:19am UTC](https://qa.fmod.com/t/ingame-ads-sound-auto-break-problem/17353/3 "2021-06-29T05:19:05Z")

</div>

Hi. I have same problem already one year  
Unity 2018.4.36  
FMOD 2.01.10  
IOS - platform with bug  
MAX Applovin Mediator - ads mediator  
If you will get IronSource ads - sound will broken on old iPhone (iPhone 6s for example)  
If you will get Applovin ads - sound will broken on new iPhone (iPhone 11 Pro and iPhone 12 Pro Max)

I can’t create test project now, but i want that you research this problem  
[MAX Applovin here](https://dash.applovin.com/documentation/mediation/unity/getting-started/integration)

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [July 2, 2021, 6:02am UTC](https://qa.fmod.com/t/ingame-ads-sound-auto-break-problem/17353/4 "2021-07-02T06:02:47Z")

</div>

This could be caused by iOS interrupts not being handled correctly by the ad mediator.  
A solution could be to manually call

```auto
FMODUnity.RuntimeManager.PauseAllEvents(true);
FMODUnity.RuntimeManager.CoreSystem.mixerSuspend();

```

just before your ads play, and then resume operation with

```auto
FMODUnity.RuntimeManager.PauseAllEvents(false);
FMODUnity.RuntimeManager.CoreSystem.mixerResume();

```

when the ads finish.
