FrankBoesing / Arduino-Teensy-Codec-lib

MP3/AAC/FLAC Codecs for Teensy 3.x
110 stars 41 forks source link

Library not working any longer on Teensy 3.2 #20

Open maddse opened 10 months ago

maddse commented 10 months ago

Hi Frank,

thank you for this impressing piece of code that I already used years ago when I bought some Teensy 3.2 boards which at this time were new.

When testing the boards against the new codec library I downloaded from github, I noticed that it does not run anymore on my Teensy 3.2. I compiled and uploaded the Complete_MP3_AAC_MP4_M4A_example after only two small changes: 1) I adapted the SDCard CS pin to 10 to match the teensy audio board and 2) I added some lines of code that print the result of the play functions.

The board entered an endless loop trying to play the MP3 files on the sdcard (I used the original sdtest1-4.mp3 files), not playing anything but reporting out of memory errors (3/ERR_CODEC_OUT_OF_MEMORY).

Just to be sure, I afterwards added a WAV file player (from the Teensy audio library) that successfully plays WAVs, so I am quite sure that my hardware is ok. Even after commenting out all parts of the AAC module, the MP3 module refuses to work.

I am running version 2.2.1 of Arduino IDE with the Teensy 1.58 stuff. Unfortunately switching to an older version of the codec library neither seems no work due to incompatibilities of the SD card code (although I have not tested this fully).

Are you aware of these problems? Can you give me a hint what I am doing wrong?

Thanks in advance, Matthias

FrankBoesing commented 9 months ago

I don't have a 3.2 to test, but I'm surprised that it doesn't work anymore. Nothing has been changed in the lib in this respect. However, the 3.2 is no longer sold anyway, and I am waiting for hints and possibly pullrequests from the community. This has a very low priority.

maddse commented 9 months ago

Hi Frank, thank you for answering. If you could give me some hints what I can do to help and identify the problem, I would be glad. I am aware that side effects of other changes (for example a bigger memory footprint of other libraries like the teensy audio library) may be the cause for the different behavior. yours, Matthias