Repository navigation
Engine v1.11: sound follows the macOS default output (#246); Soju 1.14.57 - #250
Conversation
mikey92
commented
Dec 1, 2026
- patches/engine/0008-coreaudio-follow-default-output.patch: a shared-mode render stream opened on the macOS default output moves its audio unit to the new default output when it changes (headphones connected while a game runs). SOJU_FOLLOW_DEFAULT_OUTPUT=0 turns it off.
- Engine v1.11 (release engine-v1.11) is v1.10 with only winecoreaudio.so rebuilt from this patch; install.sh and scripts/update.sh pin it.
- Checked on a Mac mini M4 Pro with a WASAPI test program: switching the default output between the speakers and a monitor while it plays moves the stream (v1.10 stays on the first device), no errors, playback continues.
- Version 1.14.57; HotS rows note the fix.
…dphones connected mid-game are used (#246); Soju 1.14.57
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
💡 Codex Reviewsoju/patches/engine/0008-coreaudio-follow-default-output.patch Lines 81 to 85 in 5f1422b When a multichannel stream starts on a surround-capable output and the user switches the macOS default to stereo headphones, this moves the existing audio unit without reconsidering its render callback. In soju/patches/engine/0008-coreaudio-follow-default-output.patch Lines 99 to 103 in 5f1422b If a game explicitly selects an output that also happens to be the current macOS default, this condition registers it for automatic migration too. Comparing device IDs cannot distinguish an explicit selection from a request to follow the default, and the listener subsequently moves that stream when the system default changes. This overrides the game's selected output, contrary to the patch's stated behavior that devices chosen by name stay where they are. Carry the default-versus-explicit selection intent into registration instead of inferring it solely from the current device ID. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |