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

Thread: Simple SD Card Read Issue

  1. #1
    Junior Member
    Join Date
    May 2020
    Posts
    19

    Simple SD Card Read Issue

    Hey all,

    So, my code calls for reading a random .wav file named "01", "02", "03" etcetera up to 07

    There is no need to include the code here because this is not a coding question. The code works great.

    What is awry is as follows:

    - All .wav files used for this project in the past work. It does not matter if they are renamed "05" or "02" or whatever --- if they played before they will play now. I simply drag the file from my documents folder onto the SD card, rename the file 01 through 07, and it plays.

    - All new .wav files I am trying to import to the SD card do not work. I give them the exact same names "01" or "02" etc.. The Teensy simply does not read them.

    Has anybody ever had a problem like this before? Do I need to reconfigure my SD card or something like that?

    Thank you

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,489
    What are you using to play the wav files?
    If new wav files don't work, maybe they have the wrong sample rate, etc.

    Pete

  3. #3
    Junior Member
    Join Date
    May 2020
    Posts
    19
    Hmm.. maybe. The SD is played by a Teensy 3.5 from the card slot direct. Should the sample rate by 44.1?

  4. #4
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,489
    I presume that you're using PlaySDWav in which case the audio design documentation for that says "Only 16 bit PCM, 44100 Hz WAV files are supported".

    Pete

  5. #5
    Junior Member
    Join Date
    May 2020
    Posts
    19
    Thanks Pete for pointing that out. I will dig a little deeper.

Posting Permissions

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