GetComponent().clip = Microphone.Start(selectedDevice, true, 1, maxFreq);//Starts recording
while (!(Microphone.GetPosition(selectedDevice) > 0)) { } // Wait until the recording has started
GetComponent().Play(); // Play the audio source!
I'm using this code to start the mic up and generate a sound file but it plays out to the speakers.
**How can I have it so that the Unity Audio Listener hears it, but it doesn't go out to the speakers?**
↧