I´m trying to convert the output of my AVAudioEngine from stereo to mono. I want to be able to send the converted mono signal to the left or right headphone or speaker using AVAudioPlayerNode's pan property.
engine.connect(audioFilePlayer[i], to: timePitchControl[i], format: audioFile[i].processingFormat)
engine.connect(timePitchControl[i], to: engine.mainMixerNode, format: audioFile[i].processingFormat)
Is there a way to convert the output of the engine (AVAudioEngine -> engine.mainMixerNode) to a mono signal in real time?