- Home /
iOS (8) - sporadic microphone.start failure.
Hi All -
this is pretty similar to this question, but a bit different so I'm starting a new thread.
when using Microphone.start() with pretty standard options on various iOS 8 iPads, I sometimes get the error message below. I haven't figured out a rhyme or reason to it - it comes in clusters: ie, it will work for 10 minutes, and then not work for 10 minutes. The bad state survives app-restart, app-deletion, and even power-cycling the entire device.
I've tried decreasing the sample size, with no effect.
This is a critical feature for the app I'm building, and if I can't get it working reliably I'll need to write an iOS plugin (and down the road an android plugin) to handle the microphone on the native side.
.. Are there alternative audio systems to Unity's built-in one ? (Ie, native plugins, not relying on Microphone).
here's the code:
// Microphone.devices.Length is > 0,
// and that device's minimum & maximum frequencies are both zero, so 16000Hz is supported.
AudioClip clip = Microphone.Start(Microphone.devices[0], false, 10, 16000);
and here's the sporadic error. again, sometimes it works fine.
Starting Microphone failed. result=57 (A call to a standard soundcard driver failed, which` could possibly mean a bug in the driver or resources were missing or exhausted.)
Have you found the solution to this? $$anonymous$$y partner and I are having this same problem right now!
I've mostly put this project to the side so I haven't been spending much time on it, so, nope, sorry.