Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: PlaySdWav: limit to file size?

  1. #1

    PlaySdWav: limit to file size?

    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?

    VocAudio.ino
    Click image for larger version. 

Name:	Screenshot_2019-02-22 Audio System Design Tool for Teensy Audio Library.png 
Views:	46 
Size:	18.6 KB 
ID:	15989

  2. #2
    Junior Member
    Join Date
    Feb 2022
    Posts
    3
    I know this is a pretty old thread, but Im wondering if you ever figured out an answer to this question?

  3. #3
    Senior Member
    Join Date
    Apr 2014
    Posts
    363
    I was doing a project using a Teensy3.6 so I thought I would try this out as the 3.6 has its own SD card.
    I used the WavePlayer sketch in the Audio Library and set it for AudioAnalogStereo. I then downloaded SDTEST1.WAV to a 16 GB MicroSD, put in teensy3.6 and it played perfect. I then opened SDTEST1.WAV in Audacity and repeated it 100 times to give me a file 1.6 MB approx. Put micro SD in Teensy3.6 and large file Played perfect

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    26,569
    Since the old thread was started, SD card access has completely changed. We switched from the ancient SD library to SdFat, and SD.h is now just a thin wrapper which uses SdFat to access the card. Filenames are no longer limited to 8.3. SDXC cards work. Probably a lot of quirks and limitations are long gone.

  5. #5
    Senior Member
    Join Date
    Apr 2014
    Posts
    363
    yes, things move on, way back about 6-8 years ago I used WaveHC WaveRP etc I think on a UNO and was able to "seek" part way into a WAV file or maybe a RAW file. I was able to play part of a file or repeat part of a file. Is seek etc still available somewhere ?? When I read the GUI I only see positionMillis and lengthMillis. Is there ways to use these to "seek" etc or any examples of other functions. etc etc ???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •