# When use unity Microphone.Start and pause fmod then resume after stop record

**URL:** <https://qa.fmod.com/t/when-use-unity-microphone-start-and-pause-fmod-then-resume-after-stop-record/16202>\
**Category:** Unity\
**Tags:** unity\
**Created:** [September 21, 2020, 9:54am UTC](https://qa.fmod.com/t/when-use-unity-microphone-start-and-pause-fmod-then-resume-after-stop-record/16202 "2020-09-21T09:54:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simingtu](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@simingtu](https://qa.fmod.com/u/simingtu)\
**Post date:** [September 21, 2020, 9:54am UTC](https://qa.fmod.com/t/when-use-unity-microphone-start-and-pause-fmod-then-resume-after-stop-record/16202/1 "2020-09-21T09:54:29Z")

</div>

when use unity Microphone.Start to record audio and pause fmod then resume after stop record.  
the problem is: the bgm sound will appear after a few seconds (7second or more). on ios phone.  
why there is a delay?

begin record:  
OnApplicationPause(true);  
Microphone.Start(xxx)

end record:  
Microphone.Stop()  
OnApplicationPause(false);

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [September 25, 2020, 5:01am UTC](https://qa.fmod.com/t/when-use-unity-microphone-start-and-pause-fmod-then-resume-after-stop-record/16202/2 "2020-09-25T05:01:59Z")

</div>

OnApplicationPause will be calling `coreSystem.mixerSuspend/Resume` which will stop all sounds running in FMOD, although I’m not sure why there would be a delay in resuming.

If you don’t want the sounds to actually pause, you could also use `RuntimeManager.MuteAllEvents`.

---

<div class="post-metadata">

**Author:** ![simingtu](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@simingtu](https://qa.fmod.com/u/simingtu)\
**Post date:** [October 24, 2020, 7:25am UTC](https://qa.fmod.com/t/when-use-unity-microphone-start-and-pause-fmod-then-resume-after-stop-record/16202/3 "2020-10-24T07:25:04Z")

</div>

It is my fault, i make a delay manually in the code, so the sound can not resumed immediately. thank u very much.
