Closed paul-at closed 7 years ago
@paul-at is this when using the on-board DAC (bcm2835)? I too have not been able to get much lower than 80ms without compromising quality using the RPi3's on-board audio. In modules/sound.py
I force sounddevice
's latency to to be high
:
https://github.com/alexmacrae/SamplerBox/blob/master/modules/sound.py#L361
When using one of my other external USB DACs I can get <15ms (the script reports ~8ms, but I'd say it's a bit more than that) because sounddevice
is able to use the latency='low'
option. Tested with a USB DAC PCM2704, Focusrite Scarlett 2i2, and PreSonus AudioBox iOne.
I define latency as time between end of MIDI message and start of sound playing using our board I2S DAC. I use serial MIDI for this measurement because its easier to capture and there is less space for variability of results.
I just redone the measurement using RPi3 and 'official' SamplerBox code and its about 60ms.
However, don't know how you achieved it, but when I do same measurement using latest commit of your fork its only 8ms!! I think we can safely close this issue and post details on the website.
Here's a proof:
http://www.samplerbox.org/forum/304 I measured ~80ms as well