wwatson
Well-known member
Was testing playing both wav and mp3 files off of both SD and USB drives. For some reason only the mp3 files would play. Using Arduino 1.8.19 and TD1.57B1 and the latest cores from @KurtE's GitHub (06-03-22).
Also using mjs513's 'PLAYALL_SD_ONLY.ino' located in the 'examples/mjs' folder in the FrankB's Arduino-Teensy-Codec-lib here:
https://github.com/FrankBoesing/Arduino-Teensy-Codec-lib
I narrowed it down to this:
If I swapped the the order of the red and green line so that playWav was first then the the wav files would play but not the mp3 files. I remembered that I was getting a warning about AudioStream::release(block); that I posted about here:
https://forum.pjrc.com/threads/68139-Teensyduino-File-System-Integration-including-MTP-and-MSC/page50 post #1235.
To get to the point, I copied AudioStream.cpp and AudioStream.h files from the original TD1.57B1 cores library to the updated cores library that I downloaded and It solved the problem. I was able to play both wav and mp3 files consecutively. I know everybody is busier than heck right now but I thought had better bring it up before the next TD release in case it is a problem
Also using mjs513's 'PLAYALL_SD_ONLY.ino' located in the 'examples/mjs' folder in the FrankB's Arduino-Teensy-Codec-lib here:
https://github.com/FrankBoesing/Arduino-Teensy-Codec-lib
I narrowed it down to this:
Code:
// GUItool: begin automatically generated code
[COLOR="#00FF00"]AudioPlaySdMp3 playMp31; //xy=154,78[/COLOR]
[COLOR="#FF0000"]AudioPlaySdWav playWav; //xy=154,422[/COLOR]
AudioPlaySdRaw playRaw; //xy=154,422
AudioPlaySdAac playAac; //xy=154,422
AudioPlaySdFlac playFlac;
AudioOutputI2S i2s1; //xy=334,89
AudioConnection patchCord3(playWav, 0, i2s1, 0);
AudioConnection patchCord4(playWav, 1, i2s1, 1);
AudioConnection patchCord1(playMp31, 0, i2s1, 0);
AudioConnection patchCord2(playMp31, 1, i2s1, 1);
AudioConnection patchCord5(playAac, 0, i2s1, 0);
AudioConnection patchCord6(playAac, 1, i2s1, 1);
AudioConnection patchCord7(playRaw, 0, i2s1, 0);
AudioConnection patchCord8(playFlac, 0, i2s1, 0);
AudioConnection patchCord9(playFlac, 1, i2s1, 1);
AudioControlSGTL5000 sgtl5000_1; //xy=240,153
If I swapped the the order of the red and green line so that playWav was first then the the wav files would play but not the mp3 files. I remembered that I was getting a warning about AudioStream::release(block); that I posted about here:
https://forum.pjrc.com/threads/68139-Teensyduino-File-System-Integration-including-MTP-and-MSC/page50 post #1235.
To get to the point, I copied AudioStream.cpp and AudioStream.h files from the original TD1.57B1 cores library to the updated cores library that I downloaded and It solved the problem. I was able to play both wav and mp3 files consecutively. I know everybody is busier than heck right now but I thought had better bring it up before the next TD release in case it is a problem