Is it possible to use specific device channels for input/output? #621
-
I'm currently evaluating miniaud.io for a project, and trying to figure out if it's possible to route audio to specific a specific set of device channels (output). From what I could quickly gather, API mentions specific features that are handy for full-duplex. For example, capturing audio from a mono source (microphone) but outputting a stereo signal. And for this purpose, configuration options such as But my use case is slightly different: ideally, I would like to access an audio device with an arbitrary number of channels and freely choose which channels to use for output. With such a device, what would be the best way to route audio from my application to the headphones? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In the past I've suggested doing as you mentioned - set the channels to 0 in the device config which will result in the native channel count being used, and then just don't use the unused channels in the data callback. There's also the channel mapping system, but the thing is, it's been designed around the concept of spatial audio channels in that you specify channels like Sorry I can't be of much help with this. There's probably no real reason I couldn't update the channel map system to allow you to specify the exact channels you want and to ignore the others. But right now, if you were wanting to go with miniaudio my preferred way is to just ignore the unused channels. |
Beta Was this translation helpful? Give feedback.
In the past I've suggested doing as you mentioned - set the channels to 0 in the device config which will result in the native channel count being used, and then just don't use the unused channels in the data callback.
There's also the channel mapping system, but the thing is, it's been designed around the concept of spatial audio channels in that you specify channels like
FRONT_LEFT
,BACK_RIGHT
, etc. It's doesn't really map too well to your scenario. In any case, even if you were to use a channel map, it would still be processing audio for those unused channels under the hood anyway.Sorry I can't be of much help with this. There's probably no real reason I couldn't update the channel ma…