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

How to handle zero channels in SupportedStreamConfig? #676

Open
maxded opened this issue Jun 21, 2022 · 1 comment
Open

How to handle zero channels in SupportedStreamConfig? #676

maxded opened this issue Jun 21, 2022 · 1 comment

Comments

@maxded
Copy link
Contributor

maxded commented Jun 21, 2022

Recently I noticed it is possible for cpal to create a valid audio device through HostTrait::default_output_device even though the SupportedStreamConfig returned from DeviceTrait::default_output_config had a channel count of 0. Is this expected behavior? If so, what does a channel count of 0 mean?

I'm aware that a device may become invalid if they get disconnected. That is not the case in my example, this all happens during initialization code.

If any more info is required let me know!

@kawogi
Copy link
Contributor

kawogi commented Sep 20, 2022

Not an answer, but maybe related: #553 suggests to use "zero channels" to abstract over input/output/duplex.

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