I have been having problems playing SD wav files. I know there is alot of discussion on this forum about using recomended SDcard and formatting etc and copying all the files on together so as to be contigious. I was getting a double "bump" at the start of some files. I recorded the sound from Teensy lineout using Audacity and found a glitch at approx 180 - 185 ms after the file started to play and this gave me the double "bump" at the start of some files. It wasn't happening with all of the files. I formatted the SD and copied the files back on and found the glitch moved to some other files and some of the others were OK now. I kept formatting a few times using SDformatter and eventually all play OK now regards having no glitch. As part of my investigating and looking at the recorded waveform in Audacity I noticed that when a file is starting to play (using for example wav.play("B.WAV")) the file seems to attempt to open and play the start of the file twice with the "tail" bit that was the last bit playing in between and sometimes there is a gap, sometimes no gap. I am playing the next files before waiting for the previous file to end. It doesn't seem to matter whether I use wav.stop or whether I use AudioNoInterupts or not. I always get a double start to the file. This happens so fast that it is not heard as a double "bump" like the 180 ms glitch was but gives an audible "click" between the sounds. Formatting etc doesn't seem to cure the problem??. I have attached my test sketch together with the audio files and recordings and some screen dumps. The other test files used were the SDTEST files from this forum Audio library. Hopefully maybe someone can give me some advice as to what is happening.....Thanks........
Attachments
Last edited: