adafruit / Adafruit_MP3

mp3 decoding on arduino
39 stars 17 forks source link

Many mp3 files not playing #5

Open Alkerion opened 5 years ago

Alkerion commented 5 years ago

I've spend lot of time trying to play a sound before realizing it was due to the mp3 file itself.

I've performed many tests with my mp3 files, most of them aren't playing.

I've only been able to play them after saving them again with Audacity.

I join two files as example.

buzzers.zip

jepler commented 3 weeks ago

The main difference between the two files appears to be that the non-working file begins with an ID3 tag.

The library provides a routine to return the number of bytes an ID3 tag consumes (or 0, if the current position is not an ID3 tag), but this routine is not used in the examples.

You would have to use this routine in order to reliably play an MP3 file that starts with an ID3 tag.

It would be great if the examples were enhanced to show the use of this routine, and even better if the library was enhanced to automatically use this routine when appropriate.