• Update: I just flashed the latest firmware onto the board and the behavior changed. Now the sampling rate seems to remain constant. The original issue (changing sampling rate) is fixed :-D Instead, I now get a different problem: little bits of the audio are repeating. This looks very much like the buffers cannot be re-filled fast enough and the playback runs into old data before the new data is ready. That sucks, but it's much less mysterious.

    Some experimenting has shown that with a buffer size of 1024 samples, the maximum sampling rate achievable without audible artifacts is 10000 Hz. For a buffer size of 2048, it's 14000 Hz. I cannot make the buffer much bigger, since Espruino will run out of memory.

    The documentation metions output rates of 20 KHz... has anybody achieved better results than me, while streaming from an SD?

About

Avatar for Dennis @Dennis started