Selecting specific input channels on multichannel audio device


I’m working on a an audio app that needs as fast as possible audio processing, and from what I can tell the ofSoundStream is giving low level access to that (which presumably is fastest). I understand the way to set up the audio device for audio in and out but I’m a bit puzzled on how to select specific inputchannels on my audio device in the setup ofSoundStreamSetup(2, 0, 44100, 256, 4);

The documentation refers to e.g. surround sound, in which you would want to poll all 6 input-channels. In my case however, there might be 4-8 input channel-pairs of Left and Right input and I need to be able to just select a pair of those within the audio device. Basically the effective data I would be using is still only 2 channels, but it might be ‘input 5 and 6’ for example.

How can I accomplish this?

Hi, you an do that with the ofSoundStream but it can be a bit cumbersome.
You can use ofxSoundObjects. Take a look at example-soundPlayerMultiOutput
Let me know if this works for you. There are a few other methods you can use with this addon for achieving a similar thing.