I'm writing some pieces of code to detect whether or not there is sound from a microphone device.
I came up with a basic working solution that consists of
WaveInEvent.StartRecording()
Sampling the data and simply checking for device.AudioMeterInformation.MasterPeakValue
I found people reporting issues around MasterPeakValue being 0 unless they open "Recording Devices",
But after some testing I found that MasterPeakValue is reported correctly for any device, but it needs to be selected in Windows input manager as DEFAULT, otherwise it's 0.
Is this a bug or should I be using a different approach for my use case? I don't want to be constrained by the default windows input.
Hi Everyone,
I'm writing some pieces of code to detect whether or not there is sound from a microphone device. I came up with a basic working solution that consists of
I found people reporting issues around MasterPeakValue being 0 unless they open "Recording Devices",
But after some testing I found that MasterPeakValue is reported correctly for any device, but it needs to be selected in Windows input manager as DEFAULT, otherwise it's 0.
Is this a bug or should I be using a different approach for my use case? I don't want to be constrained by the default windows input.
Thanks in advance