-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
Fix audio output device selection #17532
Conversation
While we're removing things, is it worth renaming WasapiWavePlayer to just WavePlayer as well, thus removing the redundant alias? The fact that it's called WasapiWavePlayer was an internal implementation detail necessitated by the coexistence of WinMM and WASAPI. In hindsight, I probably should have underscore prefixed it in the first place. |
@jcsteh yes, I think we should. I'm planning to do this in the new year. |
@SaschaCowley - I think this also missed being announced on the API mailing list |
Link to issue number:
Fixes #17530
Summary of the issue:
With the switch to exclusively WASAPI, selecting among more than 2 output devices did not work properly.
Description of user facing changes
Selection of output devices should now be more reliable.
Description of development approach
Fixed up the check for whether the selected device is the default output device. Also removed some unneeded initialisation parameters and constants.
Testing strategy:
Manually tested switching between 3 output devices (plus default), with various devices set as the Windows and NVDA default.
Known issues with pull request:
Some legacy winmm code remains, but this will be removed once SAPI4 support has been fixed.
Code Review Checklist:
@coderabbitai summary