Skip to content

window capture, audio lag fix, reasonable volume, remove mouse cursor#7

Open
jayv wants to merge 1 commit into
omarroth:mainfrom
jayv:jayv/windowed_audiolag_dontblowmyspeakers
Open

window capture, audio lag fix, reasonable volume, remove mouse cursor#7
jayv wants to merge 1 commit into
omarroth:mainfrom
jayv:jayv/windowed_audiolag_dontblowmyspeakers

Conversation

@jayv

@jayv jayv commented Jun 19, 2026

Copy link
Copy Markdown

Here are a number of changes I made on my Linux/AMDGPU system to make streaming to a Samsung TV (Airplay compatible) as well as an AppleTV4K+HomePod bearable.

  • Removes code that adds a synthetic 0.5s audio delay, which made watching sports/talk unbearable
2026/06/19 13:59:28 [SETUP] raising session latency to receiver playout floor: 500ms
2026/06/19 13:59:30 [AUDIO] audio latency: 22050 samples
  • feature: explicit window capture instead of full screen (e.g. use xdotool selectwindow you can get the ID to pass in so you can capture a background window while working on something else)

  • sets volume to "20", the existing code maxed out the volume on either my TV or my AppleTV/HomePod almost blowing the speakers on stream launch, that's an extremely careless default choice. 20 was about 30% volume which seems far more reasonable.

  • removes the "fake" mouse cursor X11 adds, when broadcasting a background window it's very weird to see the cursor move around when you're working on something else in the foreground

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant