Skip to content

Channel selection API #1301

Description

@LastExceed

Currently, the stream creation API allows specifying how many channels to use, but not which channels to use. n channels always means 0..n, so if e.g. you wanted a mono stream on the 3rd channel, you would have to

  • create a stream with n = 3
  • hope that this configuration is even supported
  • manually (de-)interleave the data
  • (if input) silence the first 2 channels

To solve this, there would need to be some way in the stream builder functions to specify which channels the stream should occupy. A (probably naive) solution would be to change StreamConfig.channels to Vec<usize>, indicating the channel indices.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions