Skip to content

How to handle zero channels in SupportedStreamConfig? #676

@maxded

Description

@maxded

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions