From d9b33cb144d4cf86f61470fa4dcb445ad12065c6 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Sat, 3 Feb 2018 14:44:21 +0100 Subject: [PATCH] dont prefill buffer --- src/mp3.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/mp3.cpp b/src/mp3.cpp index bc2c1ba..0ebcced 100644 --- a/src/mp3.cpp +++ b/src/mp3.cpp @@ -97,13 +97,6 @@ void MP3::mp3_decoder_task(void *pvParameters) { } decoder = new AudioGeneratorMP3(preallocateCodec, preallocateCodecSize); decoder->RegisterStatusCB(StatusCallback, (void*)"mp3"); - Serial.println("prefilling buffer"); - for (int i=0; i<10; i++) { -// char c; -// buff->read(&c, 1); - buff->loop(); delay(100); // pre-fill buffer - } - Serial.println("prefilling buffer done"); decoder->begin(buff, out); if (volume > 0 && volume <= 100) { out->SetGain(((float)volume)/100.0);