Skip to content

synth: pin output stream buffer to 1024 frames#383

Open
iohzrd wants to merge 2 commits into
PolyMeilex:masterfrom
iohzrd:clamped-buffer
Open

synth: pin output stream buffer to 1024 frames#383
iohzrd wants to merge 2 commits into
PolyMeilex:masterfrom
iohzrd:clamped-buffer

Conversation

@iohzrd
Copy link
Copy Markdown

@iohzrd iohzrd commented May 25, 2026

On shared-server audio backends (PipeWire/JACK), BufferSize::Default adopts the host's current quantum. Opening pro-audio applications (e.g. Bitwig) drops that quantum for low-latency monitoring, which then causes Neothesia's stream to underrun and glitch. Requesting a fixed buffer decouples Neothesia from whatever quantum the server is currently running at.

iohzrd added 2 commits May 7, 2026 15:35
The previous config path produced BufferSize::Default, which on
shared-server backends like PipeWire/JACK adopts the host's current
quantum. Opening pro-audio applications (e.g. Bitwig) drops that
quantum for low-latency monitoring, which caused Neothesia's stream
to underrun and glitch.

Request a Fixed buffer clamped to the device's reported
SupportedBufferSize range. Fall back to Default when Unknown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant