aha, thanks for the quick answer: I've been looking for that = undefined ( I've been wondering how to release the file read using "readFile()" & the associated memory , but had no .close() function, and I didn't digg .. I must have skipped that part while reading the Waveform page :/ ..)
btw, anyway to call .onfinish = fcn if playing audio as above ? I couldn't get it to work when I briefly tried while after finding about it
For the "read waveform into waveform.buffer a bit at a time", It's a nifty idea, I'll test that after concluding the above tests ( code should be close to the double-buff example I guess )
For the SD->flash stuff, it was mainly needed as I wasn't aware of using = undefined to release stuff from mem, but playing audio stuff from the flash directly is still quite nice indeed ;)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
aha, thanks for the quick answer: I've been looking for that
= undefined
( I've been wondering how to release the file read using "readFile()" & the associated memory , but had no.close()
function, and I didn't digg .. I must have skipped that part while reading the Waveform page :/ ..)btw, anyway to call
.onfinish = fcn
if playing audio as above ? I couldn't get it to work when I briefly tried while after finding about itFor the "read waveform into waveform.buffer a bit at a time", It's a nifty idea, I'll test that after concluding the above tests ( code should be close to the double-buff example I guess )
For the SD->flash stuff, it was mainly needed as I wasn't aware of using
= undefined
to release stuff from mem, but playing audio stuff from the flash directly is still quite nice indeed ;).. onto test(s) ..