- Home /
Failed to get record driver caps. result=37
Hi
I've been getting the following error:
Failed to get record driver caps. result=37 (An invalid parameter was passed to this function. ) UnityEngine.Microphone:Start(String, Boolean, Int32, Int32)
at the line
audio.clip = Microphone.Start("Microphone", true, 999, Frequency);
I don't understand... this worked before. Now it won't stop giving me this error and I cannot find anything about it online!
Many thanks!
Hi, I experienced same error and reason was, I used Unity remote via android device and I didn't have my PC microphone plugged in PC. As soon I plugged mic into PC this JavaScript worked like a boss.
var aud = GetComponent();
aud.clip = $$anonymous$$icrophone.Start("Built-in $$anonymous$$icrophone", true, 10, 44100);
aud.Play();
Can I assume something maybe is wrong with your mic setup? I hope this helps.
Answer by Landern · Dec 06, 2012 at 02:22 PM
well, everything seems perfect, except, what is the Type of Frequency? Is it an Int? Your first three variables in the MicroPhone.Start function/method are quite clear.