In my iPhone app I record audio files in AAC (m4a container) in
AVAudioRecorder, i.e. I explicitly set
[recordSettings setValue:[NSNumber numberWithInt: 1] forKey:AVNumberOfChannelsKey];
When opening those files in audio editors like Audacity they only show one channel as expected. However, there are many popular audio players like VLC or foobar2000 that interpret the file as
stereo. E.g. when I display the
Media Information... > Codec Details in VLC it looks like this:
Interestingly, files recorded with Apple’s Voice Memo app on the iPhone show the same behavior. They appear to be
stereo files in several audio players but when I open them in Audacity it turns out they only have one channel.
I cannot believe that all those well-known media players are buggy. So is there some way to tell
AVAudioRecorder to set the channel number in a way so that all major media players can detect it properly?