Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIL.Media.Naudio.BeginMonitoring() throws error when Win 11 Mic permission is off #1266

Open
hatton opened this issue Jun 30, 2023 · 1 comment

Comments

@hatton
Copy link
Member

hatton commented Jun 30, 2023

Windows 11 (possibly existing earlier) has per-app mic permission. When off, Bloom is getting

Msg: UnspecifiedError calling waveInOpen
Class: NAudio.MmException
Source: NAudio
Assembly: NAudio, Version=1.10.0.0, Culture=neutral, PublicKeyToken=null
Stack:    at NAudio.Wave.WaveIn.OpenWaveInDevice()
   at NAudio.Wave.WaveIn.StartRecording()
   at SIL.Media.Naudio.AudioRecorder.BeginMonitoringIfNeeded()
   at SIL.Media.Naudio.AudioRecorder.BeginMonitoring()
Thread: 
Thread UI culture: en-US
Exception: NAudio.MmException

It seems like instead, we should act the same as if we didn't have any mic available.

Alternatively, if we could determine the cause, then maybe a specific exception that the app could catch would make sense.

Original Bloom Issue: BL-12406

@gmartin7
Copy link
Contributor

gmartin7 commented Jul 6, 2023

Also Windows 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants