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!

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.

No microphone plugged in