cow_n_berg
Active member
Another project for me, a very basic WAV player, with Teensy 3.2 and Audio Board. Does nothing more than wait for a button, to start playing a track for more than an hour.
The WAV file of more than one hour is 875 MB. It would not play. I chopped the music up in shorter pieces with Audacity. A 3 minute WAV file "VOC01.WAV" is 31 MB, it would not start.
The same code with a shorter piece of 1:30 minutes plays well, as do the Teensy test files SDTEST1.WAV etc. I have made sure that the filenames are 8.3 compliant.
With the SdCardTest program, I changed "SDTEST1.WAV" into "VOC01.WAV" in several places. The program returns the same results as with SDTEST1.WAV. So, I'd say reading the file is not an issue in itself.
The SD card is Transcend 16 GB, not the SanDisk (yet).
Is there a limit to the file size the playSdWav can handle?
View attachment VocAudio.ino
The WAV file of more than one hour is 875 MB. It would not play. I chopped the music up in shorter pieces with Audacity. A 3 minute WAV file "VOC01.WAV" is 31 MB, it would not start.
The same code with a shorter piece of 1:30 minutes plays well, as do the Teensy test files SDTEST1.WAV etc. I have made sure that the filenames are 8.3 compliant.
With the SdCardTest program, I changed "SDTEST1.WAV" into "VOC01.WAV" in several places. The program returns the same results as with SDTEST1.WAV. So, I'd say reading the file is not an issue in itself.
The SD card is Transcend 16 GB, not the SanDisk (yet).
Is there a limit to the file size the playSdWav can handle?
View attachment VocAudio.ino