I have a PC project that allows the simultaneous recording of multiple microphones.
When I plug in 2 mics of the same make and manufacturer and start listening on both mics, Unity keeps loosing/regaining connection with one of the mics.
This only occurs for the first USB registration of the mic.
example: Microphone (2- Logitech USB Headset) & Microphone (Logitech USB Headset)
This DOES NOT occur with any other combination of mics.
example: Microphone (3- Logitech USB Headset) & Microphone (2- Logitech USB Headset)
The example output above is from:
void Update ()
{
updateTimerDelta += Time.deltaTime;
if (updateTimerDelta >= updateTimer)
{
string msg = "";
foreach (string m in Microphone.devices)
msg += " " + m;
Debug.Log(msg);
if (micCount != Microphone.devices.Length) {
if (OnMicChange != null)
OnMicChange (Microphone.devices.Length - micCount);
micCount = Microphone.devices.Length;
}
updateTimerDelta = 0;
}
}
You can see from the above that my goal is to check every few seconds to see if a microphone has been plugged in or unplugged and then send an event that tells everyone something changed to act appropriately.
Thoughts on what is happening and how I can approach this issue?