# mixerSuspend / mixerResume not being called on Desktop Build

**URL:** <https://qa.fmod.com/t/mixersuspend-mixerresume-not-being-called-on-desktop-build/12621>\
**Category:** FMOD Studio\
**Created:** [August 1, 2016, 10:48am UTC](https://qa.fmod.com/t/mixersuspend-mixerresume-not-being-called-on-desktop-build/12621 "2016-08-01T10:48:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulojgames](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@paulojgames](https://qa.fmod.com/u/paulojgames)\
**Post date:** [August 1, 2016, 10:48am UTC](https://qa.fmod.com/t/mixersuspend-mixerresume-not-being-called-on-desktop-build/12621/1 "2016-08-01T10:48:16Z")

</div>

Hi,

I’ve noticed on the documentation that there are two functions to suspend/resume the mixer thread when the application window loses focus:  
[https://www.fmod.org/docs/content/generated/FMOD\_System\_MixerResume.html](https://www.fmod.org/docs/content/generated/FMOD_System_MixerResume.html)  
[https://www.fmod.org/docs/content/generated/FMOD\_System\_MixerSuspend.html](https://www.fmod.org/docs/content/generated/FMOD_System_MixerSuspend.html)

Is this only used on mobile platforms? We have generated a Desktop build with Unity and noticed the audio doesn’t stop when the application window loses focus. Should Fmod\_StudioSystem take care of this or is there any other way to implement?

Cheers.

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [August 2, 2016, 1:10am UTC](https://qa.fmod.com/t/mixersuspend-mixerresume-not-being-called-on-desktop-build/12621/2 "2016-08-02T01:10:01Z")

</div>

Correct those functions only apply to mobile platforms. If you want your game to pause all audio on all platforms, get the master bus and use Bus.setPaused() inside an OnApplicationPause() event handler.

We added exactly this behaviour as the default in 1.08.07, but I doubt you want to switch from the legacy integration for something that can done in a few lines of script.

---

<div class="post-metadata">

**Author:** ![paulojgames](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@paulojgames](https://qa.fmod.com/u/paulojgames)\
**Post date:** [August 2, 2016, 11:28am UTC](https://qa.fmod.com/t/mixersuspend-mixerresume-not-being-called-on-desktop-build/12621/3 "2016-08-02T11:28:45Z")

</div>

Thanks, we implemented as you described and it worked like a charm! 🙂

Cheers.
