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.
Currently, the stream creation API allows specifying how many channels to use, but not which channels to use.
nchannels always means0..n, so if e.g. you wanted a mono stream on the 3rd channel, you would have toTo 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.channelstoVec<usize>, indicating the channel indices.