-
Notifications
You must be signed in to change notification settings - Fork 42
Description
On Teensy 4.1, at seemingly random intervals a few to a few tens of minutes apart, the MP3 player just stops playing.
What I know and have tried:
Tried a few different MP3-files and two different SD-cards - no change.
Ported the library to directly use SdFat instead of going via Arduino SD - no change.
To verify the SD card and filesystem code I set up a loop to continuously read and checksum the file over several hours:
- Reading at full speed - works fine.
- Reading at a slowed pace, similar to that of audio playback - works fine.
- Reading random-length chunks of the file - works fine.
The Teensy Audio system is still running; other sources continue playing.
Calling another .play() gets the MP3Player going just fine again.
When the problem occurs, _fposition of the CodecFile class just sits there without changing, but I haven't taken any further plunges into the code - wanted to ask for ideas or suggestions first.
Got any? :)