MADFormatReader.cpp can not decode single channel mp3 file


#1

Hi,all
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?

Ptomaine,
How are you?
You posted this excellent decoder about 2 years ago(long time),
http://www.rawmaterialsoftware.com/juceforum/viewtopic.php?t=2522

do you have any suggestions?

Thank you !
Best
Leon :slight_smile:


#2

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)