You are reading a single comment by @user58729 and its replies. Click here to read the full conversation.
  • 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 :-

    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 :-

    SPI2.setup({mosi:B15, miso:B14, sck:B13,baud:20000000});

    I hope that is useful.

About

Avatar for user58729 @user58729 started