I don't know if you are still interested, but I played around with audio playback and found that the buffer passed to the callback seemed to be the wrong one. The following code shows how I refill the buffers for click-free audio :-
w.on("buffer", function(buf) {
if (w.currentBuffer == 0)
{
w.buffer2.set( /* new data */ );
}
else
{
w.buffer.set(/* new data */ );
}
}
});
Also, if you want to speed up the SD card access then you can indeed increase the SPI rate :-
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.
Hi,
I don't know if you are still interested, but I played around with audio playback and found that the buffer passed to the callback seemed to be the wrong one. The following code shows how I refill the buffers for click-free audio :-
Also, if you want to speed up the SD card access then you can indeed increase the SPI rate :-
SPI2.setup({mosi:B15, miso:B14, sck:B13,baud:20000000});
I hope that is useful.