Scan MP3 for header, avoid multiple burst errors (#764)

MP3 comes in chunks of encoded data started by a header sequence.
Scan for it in the decoder and only pass in data that starts with
this header to avoid the burst errors

Avoids a avalanche of `lost synchronization` error reports when there
is a file error.

Also enable additional sketches on the RP2040/RP2350
This commit is contained in:
Earle F. Philhower, III authored and GitHub committed 2025-10-07 23:22:54 -07:00
1 parent ae685b19e9
commit 39188b81d6
17 files changed
+126 -113

No files matched your search

+3 -7
View File
@@ -19,13 +19,10 @@
*/
#include <Arduino.h>
#if defined(ARDUINO_ARCH_RP2040)
// Nothing here
#ifdef ESP8266
#include <ESP8266WiFi.h>
#else
#ifdef ESP32
#include <WiFi.h>
#else
#include <ESP8266WiFi.h>
#include <WiFi.h>
#endif
#include "web.h"
@@ -311,4 +308,3 @@ void Read4Int(char *str, byte *p)
str += ParseInt(str, &i); p[2] = i; if (*str) str++;
str += ParseInt(str, &i); p[3] = i;
}
#endif