Files
neko/server
Miroslav Šedivý 827944349b fix: reduce audio jitter buffer latency (#673)
* fix: reduce audio jitter buffer latency

- Release listenersMu before dispatching samples to listeners
- Buffer Track.sample channel (size 2) with non-blocking WriteSample
- Buffer pipeline.sample channel (size 4) to unblock GStreamer thread
- Add leaky=downstream max-size-buffers=5 to audio queue to prevent burst accumulation
- Set sync=false on appsink to deliver buffers immediately without clock wait

These changes break the backpressure chain that caused the GStreamer
streaming thread to stall. When the Go scheduler has a hiccup, buffered
frames were delivered in a burst, causing the browser audio jitter buffer
to grow to ~10 seconds over time.

Fixes: #598

* fix: log message when dropping samples due to full track channel
2026-08-04 14:59:11 +02:00
..
2025-03-26 23:51:19 +01:00
2025-04-03 14:17:59 +02:00
2024-09-06 22:56:24 +02:00
2025-03-31 23:09:39 +02:00
2026-04-08 14:59:31 +02:00
2026-04-25 15:20:43 +02:00
2026-04-25 15:20:43 +02:00
2024-09-06 22:56:24 +02:00
2025-03-22 17:52:56 +01:00