[GH-ISSUE #24] Audio leak to the host + some workaround + some feedback #18

Closed
opened 2026-11-01 11:24:00 +00:00 by roman · 1 comment
Owner

Originally created by @krakerz on GitHub (May 25, 2026).
Original GitHub issue: https://github.com/Arbitrate3280/LutrisToSunshine/issues/24

first of all, thanks for this helper tools 👌
and i want to share my experiences as well while using this tools
i have some weirdly going on in my CachyOS
i can't even manage to change the sink to the LutrisToSunshine, it always reset back to my speaker

https://github.com/user-attachments/assets/4da1ff1c-28a0-4100-b075-bb91310a2f47

so in the end, i modify the script a bit, to make it set the default sink to my speaker in -launch-app.sh
what i did change is replace ALL PULSE_SINK value to mine

Image

then to handle the audio leak on the host, i just need to make it mute when streaming and toggle it back after stream ends, so i just add the command for it
wpctl set-mute @DEFAULT_AUDIO_SINK@ 1 inside the -set-resolution.sh
and
wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 inside the -reset-resolution.sh
since this both script is already added to the all game list


Feedback

  • if possible, please add a param to remove all the imported games from sunshine
  • add game based on launcher detected, example lutris only, or steam only, etc
Originally created by @krakerz on GitHub (May 25, 2026). Original GitHub issue: https://github.com/Arbitrate3280/LutrisToSunshine/issues/24 first of all, thanks for this helper tools 👌 and i want to share my experiences as well while using this tools i have some weirdly going on in my CachyOS i can't even manage to change the sink to the LutrisToSunshine, it always reset back to my speaker https://github.com/user-attachments/assets/4da1ff1c-28a0-4100-b075-bb91310a2f47 so in the end, i modify the script a bit, to make it set the default sink to my speaker in -launch-app.sh what i did change is _replace ALL_ PULSE_SINK value to mine <img width="503" height="55" alt="Image" src="https://github.com/user-attachments/assets/5caf95d8-cd80-4cf6-8200-577cf7c33d3b" /> then to handle the audio leak on the host, i just need to make it **mute** when streaming and toggle it back after stream ends, so i just add the command for it `wpctl set-mute @DEFAULT_AUDIO_SINK@ 1` inside the -set-resolution.sh and `wpctl set-mute @DEFAULT_AUDIO_SINK@ 0` inside the -reset-resolution.sh since this both script is already added to the all game list --- # Feedback - if possible, please add a param to remove all the imported games from sunshine - add game based on launcher detected, example `lutris` only, or `steam` only, etc
roman closed this issue 2026-11-01 11:24:00 +00:00
Author
Owner

@Arbitrate3280 commented on GitHub (Jun 26, 2026):

Thanks for the feedback and for sharing your experience!

I've actually re-worked how the audio isolation works to make it more robust (it’s been working great on my end). Give it a try by pulling the latest script and setting it up again to see if it resolves things for you.

Regarding the specific points and workarounds you mentioned:

"i can't even manage to change the sink to the LutrisToSunshine, it always reset back to my speaker"

That is actually the intended behavior! By default, Sunshine tries to set the sink it’s streaming from as the system default. The goal of this script is to isolate host and client audio so that if someone is using the host PC (watching videos, etc.), that audio won't interfere with your stream.

Because of this, the script automatically changes the default back to your speaker. You shouldn't ever need to change it manually.

"then to handle the audio leak on the host, i just need to make it mute when streaming and toggle it back after stream ends..."

Muting the host entirely was exactly what I was trying to avoid with the isolation setup, but I'm glad you found a temporary fix that works for your current setup. Hopefully, the latest rewrite fixes the root of that leak for you.

If you're still having issues with the latest version of the script let me know.

<!-- gh-comment-id:4805622441 --> @Arbitrate3280 commented on GitHub (Jun 26, 2026): Thanks for the feedback and for sharing your experience! I've actually re-worked how the audio isolation works to make it more robust (it’s been working great on my end). Give it a try by pulling the latest script and setting it up again to see if it resolves things for you. Regarding the specific points and workarounds you mentioned: "i can't even manage to change the sink to the LutrisToSunshine, it always reset back to my speaker" That is actually the intended behavior! By default, Sunshine tries to set the sink it’s streaming from as the system default. The goal of this script is to isolate host and client audio so that if someone is using the host PC (watching videos, etc.), that audio won't interfere with your stream. Because of this, the script automatically changes the default back to your speaker. You shouldn't ever need to change it manually. "then to handle the audio leak on the host, i just need to make it mute when streaming and toggle it back after stream ends..." Muting the host entirely was exactly what I was trying to avoid with the isolation setup, but I'm glad you found a temporary fix that works for your current setup. Hopefully, the latest rewrite fixes the root of that leak for you. If you're still having issues with the latest version of the script let me know.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Arbitrate3280/LutrisToSunshine#18
No description provided.