From c1ad3416a1c5ce629bcdaeccc55c19808628099a Mon Sep 17 00:00:00 2001 From: Peter Edley Date: Sat, 19 Sep 2026 10:03:32 +0100 Subject: [PATCH] docs: clarify audio format in flinger audio loop The PipeWire stream negotiates S16LE stereo at 48 kHz; document that the WAVE packets carry this directly. --- internal/flinger/flinger.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/flinger/flinger.go b/internal/flinger/flinger.go index bf9cdc5..7fb7ff5 100644 --- a/internal/flinger/flinger.go +++ b/internal/flinger/flinger.go @@ -219,6 +219,10 @@ func (e *Engine) Status() Status { // audioLoop reads raw PCM and emits WAVE packets. start is the shared // reference clock used by the video loop so audio and video timestamps stay // aligned on the receiver. +// +// The PipeWire capture negotiates interleaved signed 16-bit stereo at 48 kHz +// (the teleportfling stream's negotiated Format is S16LE), which is exactly +// what the WAVE packets carry. func (e *Engine) audioLoop(src io.ReadCloser) { defer func() { _ = src.Close() }()