NAudio
NAudio copied to clipboard
Is WaveIn.GetCapabilities(index) guaranteed to return the same device for the same index each time?
I am currently saving the product name guid into the user settings then if I load those settings I find the device index by looking up the device's product name guid in a loop over WaveIn.DeviceCount
and on a hit I save the index to pass to an WaveInEvent. (Note: The device name guid is sometimes Guid.Empty which is why I stopped using it)
My question is if I could safely use device index directly when I did a loop over Wavein.DeviceCount
(ie. saving the index to user settings rather than the guid)?
I've also read DirectSoundOut.Devices exposes a device guid. Is this the same device guid from WaveIn.GetCapabilities(waveInDevice)
?
Because it would mean that that device guid can be Guid.Empty as well and of no use.