Fox 2026-06-04: "delay does seem to be about 4 secs but still very chappy." Buffer IS holding 4s and emitting — that part works — but every transient empty-queue tick (a single 2.67 ms drain) was setting started=false, which forced a full 4-second re-fill before emit resumed. So a 50 ms network jitter on the upstream caused a 4 s silence on the listener. That's the chop. Fix: track consecutive empty-queue blocks. Only re-arm (started=false) after rearmThresholdBlocks (100 = ~267 ms) of sustained silence. Brief drains emit silence-fill but keep started=true so playback resumes the instant new samples arrive. Listener hears at most ~267 ms of dead air on each drain — almost certainly Opus PLC will mask far shorter ones. Long outages (>267 ms with no samples) still re-buffer to 4 s — that case isn't this bug, it's a real upstream death where a fresh cushion is correct. |
||
|---|---|---|
| .. | ||
| blog | ||
| fonts | ||
| chat.html | ||
| host-your-own.html | ||
| how-it-works.html | ||
| index.html | ||
| kernel.html | ||
| stamp.js | ||
| zebra-audio.html | ||
| zebra-spaces.html | ||