Files
codex/codex-rs
Benjamin Carlsson 2ef0f66901 Increase Linux voice callback periods at 48 kHz (#63169)
## Why

At 48 kHz, the two-period ALSA capture ring can overrun on PipeWire
graphs with 4,096- or 4,800-frame cycles, dropping microphone samples.

## What changed

Raise the Linux capture and playback target from 50 ms to 80 ms at
48 kHz, within device and queue limits. Give playback room for two
periods plus block-boundary headroom, and allow up to 160 ms for a
blocked write.

## Testing

Extend the PipeWire cycle simulation to check for capture overruns
across cycle-size changes and verify that playback can render a
two-period burst from 20 ms packets.

GitOrigin-RevId: ee5e70497bee6f8a00dd3f2f2ab5827bafc36b65
2026-11-22 18:09:39 +00:00
..
…
…
…