somewhat experimental update for voice chat but it aint making it worse i guess

This commit is contained in:
2026-06-30 21:53:06 +01:00
parent 0cfde5300c
commit 0f0a732049
2 changed files with 38 additions and 11 deletions
+12 -4
View File
@@ -125,10 +125,18 @@ class CSSStreamAgent:
f'webrtcbin. '
# Game audio: pipewiresrc → Opus
# pipewiresrc is the native PipeWire GStreamer source (Ubuntu 24+/26).
# It connects to the default audio output monitor via PipeWire directly,
# avoiding the PulseAudio compatibility layer entirely.
f'pipewiresrc ! '
# pipewiresrc with no target follows PipeWire's default *capture*
# node (the microphone, virtual_mic) — not the default sink's
# monitor — so without explicit targeting it silently captured
# the mic into this track instead of game audio.
# game_output is a single PipeWire node with both playback ports
# (what CSS writes to) and monitor ports (the loopback read side)
# on the same node — there's no separate "game_output.monitor"
# node. stream.capture.sink=true tells PipeWire's autoconnect to
# link to that node's monitor/capture-sink ports rather than
# treating it as a regular source.
f'pipewiresrc target-object=game_output '
f'stream-properties="props,stream.capture.sink=(boolean)true" ! '
f'audio/x-raw,format=F32LE,rate=48000,channels=2 ! '
f'audioconvert ! '
f'opusenc ! '