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

Fix outputting audio to multi-channel output devices #226

Merged
merged 3 commits into from
Jul 8, 2023

Conversation

nyanpasu64
Copy link
Collaborator

@nyanpasu64 nyanpasu64 commented Jul 7, 2023

This pull request aims to add support for multi-channel audio devices which would previously fail to open.

Tested to play audio properly on Windows 11 with mono, stereo, and surround audio devices (outputs to first 2 channels). Tested to play sound on stereo speakers on Wine on PipeWire.

Changes in this PR:

Fixes opening multi-channel output devices.
An exception didn't follow the existing pattern of error handling (bad),
and would terminate the program (bad). Unfortunately std::runtime_error
currently closes the program without showing a message to the user; this
should be fixed at some point.
@Gumball2415 Gumball2415 merged commit fae579b into main Jul 8, 2023
@Gumball2415 Gumball2415 linked an issue Nov 29, 2023 that may be closed by this pull request
@nyanpasu64 nyanpasu64 deleted the multi-channel-wasapi branch March 13, 2024 11:53
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

Successfully merging this pull request may close these issues.

Multi-channel output devices do not work with WASAPI backend
2 participants