native: bigger SOF buffer (20ms/80ms) + louder keepalive dither (±32)
Log analysis from obsidian-nebula-moss showed two remaining issues:
- XRUN + short write 96/480 frames — 10ms buffer too tight
- sdmode still cycling — ±1 dither @ S32_LE <<8 = -108 dBFS,
below the SOF silence detector threshold
Fixes:
- SOF period/buffer bumped from 10ms/40ms to 20ms/80ms. Reduces
XRUNs at high gain where short writes create audible glitches.
- Keepalive dither bumped from ±1 to ±32 int16 (~-72 dBFS at
S32_LE). Still inaudible but enough RMS to hold the DSP
pipeline active so the amp doesn't cycle on/off mid-playback.
Should fix the "fuzzy" sound quality user reported.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>