I am creating AVCaptureDeviceInput using an audio driver (user land driver) which has 6 channels (5.1 channels). The audio driver captures system's audio.
I am creating AVCaptureAudioDataOutput using stream description of 2 channels.
Now I add AVCaptureDeviceInput and AVCaptureAudioDataOutput to AVCaptureSession and write sample buffers of AVCaptureAudioDataOutput to a file.
I play a 5.1 file in my system and my above sample app writes it to a file.
- The recorded audio will have 2 channels as per steam description.
- the recorded file will have all 5.1 channels recorded in a stereo file (Eg: Left Front and Rear in Left; Right Front & Rear in Right).
My query is: Who handles the mixing here?
Thank you.