Background: using the main sound, remoteio, (no graph) I successfully used the built-in microphone to read in the samples just fine. I recently added code to change the sound source using a notification (change audio route). I can switch to the USB input without any problems and read perfectly in the examples.
My problem is that I always read samples from the first channel. Therefore, I can only read from the first channel of the built-in microphone and the first channel of the external USB.
I am looking for help reading from higher usb channels. I need to read only on one channel and do not need to read on several input channels at once.
My thinking was AudioUnitSetProperty with kAudioOutputUnitProperty_EnableIO kAudioOutputUnitProperty_EnableIO, but it crashes when I do this and it is difficult to debug since I cannot bind to xcode during debugging, as the ios device connects via usb to external USB via USB. Do I need to mute the sound first? stop the session?
source share