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.
This commit is contained in:
@@ -219,6 +219,10 @@ func (e *Engine) Status() Status {
|
|||||||
// audioLoop reads raw PCM and emits WAVE packets. start is the shared
|
// 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
|
// reference clock used by the video loop so audio and video timestamps stay
|
||||||
// aligned on the receiver.
|
// 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) {
|
func (e *Engine) audioLoop(src io.ReadCloser) {
|
||||||
defer func() { _ = src.Close() }()
|
defer func() { _ = src.Close() }()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user