MADFormatReader.cpp can not decode single channel mp3 file


MADFormatReader is a good decoder, I make use of it to decode stereo mp3 files without error .However, it can not decode single channel mp3 files.
any one experienced this? Do you have any ideas about it?

How are you?
You posted this excellent decoder about 2 years ago(long time),

do you have any suggestions?

Thank you !
Leon :slight_smile:


more details

What steps will reproduce the problem?

  1. Record an mp3 file with just 1 channel
  2. Load and play it in the player
  3. Lots of static

What is the expected output? What do you see instead?
The MADAudioFormat should handle 1 channel MP3 files. In read method, both
left and right channels are being set even if only one of them should be
(if number of channels is 1)