feat(windows): add externally managed audio capture - #1
Draft
AlexAllocated wants to merge 1 commit into
Draft
AlexAllocated wants to merge 1 commit into
AlexAllocated wants to merge 1 commit into
Conversation
AlexAllocated
force-pushed
the
codex/windows-external-audio
branch
2 times, most recently
from
September 8, 2026 03:26
e3a6b2f to
894cd10
Compare
Build artifactsArtifacts from workflow run 34183533999:
You must be signed in to GitHub to download workflow artifacts. |
Screenshot ComparisonPR #1 screenshots vs Matrix:
|
AlexAllocated
force-pushed
the
codex/windows-external-audio
branch
7 times, most recently
from
September 8, 2026 06:27
23ecf7d to
7383096
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.













































































Description
I use an audio mixer to route applications to different outputs, including a dedicated output for Moonlight. I want Sunshine to capture that output without changing the Windows default device. Otherwise, applications that follow the default can end up on the wrong output, or Sunshine and the mixer can keep undoing each other's changes.
This adds an Externally Managed Audio option on Windows. With it enabled, Sunshine captures the configured
audio_sinkand leaves default devices and device formats alone. It requires an explicit sink and won't fall back to another device if that sink is unavailable. Playback stays under the mixer's control, so the Virtual Sink and Moonlight host-playback settings don't affect routing in this mode.The option is off by default. This builds on the direct capture support in #5408, which intentionally kept default-device switching for existing setups. This PR lets external mixers opt out without changing that behavior for everyone else.
Testing
Built and tested on Windows x64 and ARM64. The native test suites, frontend build, and browser checks pass.
Tested stereo playback and reconnecting from Moonlight while the mixer kept a separate local output. Added regression tests for sink selection, unavailable endpoints, endpoint reactivation, and compatibility with the option disabled.
Real-device unplug/replug and surround playback haven't been tested.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.