latency with pisound
Started by soumello




0 posts in this topic
soumello

 
23-08-25, 01:58 -
#1
Hi, I’m getting about 50 ms of latency when running SamplerBox with Pisound on Raspberry Pi.

I tried changing BLOCKSIZE in configuration.txt:

BLOCKSIZE = Low → still forces high buffer size (period_size: 416, buffer_size: 2080).

BLOCKSIZE = 104 → SamplerBox shows blocksize=104, but ALSA reports period_size: 626, buffer_size: 1878.

BLOCKSIZE = 204 → ALSA falls back to period_size: 624, buffer_size: 1872.

I also tried modifying audio.py to add latency=0.02 in the sounddevice.Stream. This reduced the buffer size, but caused strong clicks and pops.

It seems ALSA always overrides the requested settings with much larger period/buffer sizes.

Question:
What’s the recommended way to configure Pisound + SamplerBox for reliable low latency (e.g., period_size=64 / buffer_size=128 at 48kHz) without glitches? Should this be forced via .asoundrc or directly in SamplerBox’s audio backend?



MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

If you're a visitor of this website, please wait a few minutes and try again. If this problem persists, please contact the site owner.

If you are the site owner, please check the MyBB Documentation for help resolving common issues, or get technical help on the MyBB Community Forums.