Problem related to microphone after scene is reopened from background

i have a scene, running on iPad. In it, when i blow the air in the mic, a bubble is spawned and then bursts.

Problem is when i close my app [press home button, app running in background],

In console i see the log-
→ applicationWillResignActive()
→ applicationDidEnterBackground()

and then reopens it then microphone part doesnt works…
Log-
2013-09-29 11:11:55.425 StreetOXDev[2784:1007] Audio route change while recording was stopped.

why is this happening and how can i stop this ?

UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
Follow_me:Update()

(Filename: /Applications/buildAgent/work/7535de4ca26c26ac/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 54)

→ applicationWillResignActive()
→ applicationDidEnterBackground()
2013-09-29 11:11:55.425 StreetOXDev[2784:1007] Audio route change while recording was stopped.

bump

bump

Hi im quite late to answer, but just like me, someone with this problem will end here, hahaha

I have a similar problem recently, i have a MicrophoneController.cs, that was in two scenes, and when I swap between this scenes, the microphone doesnt work.
The solution that work for me is to right before to call the Microphone.Start() , I call the Microphone.End(), passing the same microphone I am about to start, so this way Im always sure that if my microphone was running in background or another scene, it will finish and then start again.

I dont know exactly the problem, but my guess is that when the other scene try to “Start” the microphone even that he is already working may cause the problem. I hope to help anyone with the same problem :slight_smile: