• src/xpdev/xpbeep.c

    From Deucе@VERT to Git commit to main/sbbs/master on Mon Jun 29 22:56:10 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/830596d741d6f092be3e7aab
    Modified Files:
    src/xpdev/xpbeep.c
    Log Message:
    xpbeep: cap pathological ALSA buffer latency

    Open ALSA once with the existing minimal parameter negotiation so
    user and .asoundrc defaults remain authoritative when they produce
    a reasonable buffer.

    If the negotiated ALSA buffer exceeds 300 ms, reopen and retry with
    a CoreAudio-like 3 x 1024-frame target. If the capped retry fails,
    fall back to the original uncapped configuration rather than dropping
    ALSA entirely.

    This should kick in for whatever weird-assed distro DigitalMan uses
    where the mixer latency with the default ALSA device is allegedly
    around 30s.

    Co-Authored-By: OpenAI Codex <codex@openai.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net