flightlessturd
Active member
Hi Folks,
I'm trying to use the Play_wav_sd library found here: https://github.com/mxmxmx/eurotrash_mkII/tree/master/soft/libraries/Audio
It adds pause() and seek() as well as other classes I don't necessarily need.
I'm trying to use pause(), followed by seek() to pause/restart a 16bit, 44.1KHz file. I've lengthBytes() and lengthMillis() (both uint32_t) of my file, but when I put some fraction of either value into seek(), neither correspond to the relative distance the seek() seeks into the file. The relative distance of seeking also varies with different files relative to Bytes (between x400 & x500) and Millis (between x3 & x4).
I clearly have some gaps in my knowledge of how the classes are handling the data. I don't want my hand held so any pointers on what to read up on, or advice would be greatly appreciated.
PS, is there a simpler way to use pause() (I initially thought invoking it twice would pause/restart, but that doesn't seem to work).
Thanks!
I'm trying to use the Play_wav_sd library found here: https://github.com/mxmxmx/eurotrash_mkII/tree/master/soft/libraries/Audio
It adds pause() and seek() as well as other classes I don't necessarily need.
I'm trying to use pause(), followed by seek() to pause/restart a 16bit, 44.1KHz file. I've lengthBytes() and lengthMillis() (both uint32_t) of my file, but when I put some fraction of either value into seek(), neither correspond to the relative distance the seek() seeks into the file. The relative distance of seeking also varies with different files relative to Bytes (between x400 & x500) and Millis (between x3 & x4).
I clearly have some gaps in my knowledge of how the classes are handling the data. I don't want my hand held so any pointers on what to read up on, or advice would be greatly appreciated.
PS, is there a simpler way to use pause() (I initially thought invoking it twice would pause/restart, but that doesn't seem to work).
Thanks!