diff --git a/src/AudioGeneratorMP3.cpp b/src/AudioGeneratorMP3.cpp index 7e0e50c..6a3672f 100644 --- a/src/AudioGeneratorMP3.cpp +++ b/src/AudioGeneratorMP3.cpp @@ -203,6 +203,10 @@ bool AudioGeneratorMP3::begin(AudioFileSource *source, AudioOutput *output) Serial.printf_P(PSTR("MP3 source file not open\n")); return false; // Error } + + output->SetBitsPerSample(16); // Constant for MP3 decoder + output->SetChannels(2); + if (!output->begin()) return false; // Where we are in generating one frame's data, set to invalid so we will run loop on first getsample()