jcarruthers
Well-known member
I am having issues reading two WAV files at once from SD cards — they are short samples and played repeatedly. I get issues with latency and eventually most of the time the Teensy crashes after a while.
My idea is to cache WAV files from the SD card in to Teensy memory and play them from there.
To make the most of the limited 64kB memory I am considering using uLaw so I can get 10 seconds or so in memory.
Any thoughts before I spend my time working this all out?
I found some uLaw code here: http://dystopiancode.blogspot.co.uk/2012/02/pcm-law-and-u-law-companding-algorithms.html
James
My idea is to cache WAV files from the SD card in to Teensy memory and play them from there.
To make the most of the limited 64kB memory I am considering using uLaw so I can get 10 seconds or so in memory.
Any thoughts before I spend my time working this all out?
I found some uLaw code here: http://dystopiancode.blogspot.co.uk/2012/02/pcm-law-and-u-law-companding-algorithms.html
James