Avatar for user58729

user58729

Member since Nov 2015 • Last active Nov 2015
  • 0 conversations
  • 1 comments

Most recent activity

  • in General
    Avatar for user58729

    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.

Actions