ESP8266Audio icon indicating copy to clipboard operation
ESP8266Audio copied to clipboard

MP3: ERROR_BUFLEN 0 Esp8266 On Spiffs Example

Open SuperJonotron opened this issue 4 years ago • 6 comments

I just installed this library and attempted to use the play mp3 from spiffs example. I initially was using board 2.6.3 but that didn't compile so I updated to the latest of 3.0.2. I went through the guide to set all the memory as defined for the esp8266 node mcu hardware, uploaded the data but I get the ERROR_BUFLEN 0 when it tries to play the file. Tried to find a solution in existing issues but nothing seemed to clarify this, especially since it's just from the unmodified example. Anybody know what's going on? Some undocumented memory issue I need to update for 3.0.2 board library? Different board library version that has better support?

Sample MP3 playback begins...
ID3 callback for: Title = 'Piano Sample'
ID3 callback for: Performer = 'Artist Goes Here'
ID3 callback for: Album = 'Album Goes Here'
ID3 callback for: Year = '2010'
ID3 callback for: eof = 'id3'
MP3:ERROR_BUFLEN 0
MP3 done
MP3 done
MP3 done

SuperJonotron avatar Dec 24 '21 02:12 SuperJonotron

I just installed this library and attempted to use the play mp3 from spiffs example. I initially was using board 2.6.3 but that didn't compile so I updated to the latest of 3.0.2. I went through the guide to set all the memory as defined for the esp8266 node mcu hardware, uploaded the data but I get the ERROR_BUFLEN 0 when it tries to play the file. Tried to find a solution in existing issues but nothing seemed to clarify this, especially since it's just from the unmodified example. Anybody know what's going on? Some undocumented memory issue I need to update for 3.0.2 board library? Different board library version that has better support?

Sample MP3 playback begins...
ID3 callback for: Title = 'Piano Sample'
ID3 callback for: Performer = 'Artist Goes Here'
ID3 callback for: Album = 'Album Goes Here'
ID3 callback for: Year = '2010'
ID3 callback for: eof = 'id3'
MP3:ERROR_BUFLEN 0
MP3 done
MP3 done
MP3 done

I'm having the same issue, also with a NodeMCU. Have you found any solution?

aforch avatar Mar 27 '22 07:03 aforch

After I posted this, I also attempted to get this to work on a RP2040 and a D1 Mini both with the same issue as the node mcu. I luckily had some esp32's ordered so I was able to test with those shortly after. So my "solution" was to abandon all hope for any of the "supported" boards except the 32 and just use the esp32 DAC options. Not much of a solution for this issue or what I would have expected for a project to claim full support of a board that appears to have zero support of that board but, that's where I am on this one.

SuperJonotron avatar Mar 29 '22 16:03 SuperJonotron

I am having the same output, but the song still plays without problems.

gitfvb avatar Jun 03 '22 14:06 gitfvb