Fix microphone capture in DirectAudio games (#747)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-14 00:58:52 -04:00
1 parent 7ab10aef04
commit f9b58837d0
3 files changed
+26

No files matched your search

@@ -300,6 +300,7 @@ def main():
if not command:
return 2
env = os.environ.copy()
mic_enabled = env.get("BL_MIC_ENABLED")
mark_install_scripts(command, env)
app_id = game_id(env)
if app_id:
@@ -328,6 +329,8 @@ def main():
env = apply_config(env, {"version": 1}, app_id, fixes)
except (OSError, ValueError, TypeError, AttributeError):
print("droiddeck-game-env: invalid configuration; using inherited environment", file=sys.stderr)
if mic_enabled == "0":
env["BANNER_AUDIO_DIRECT_MIC"] = "0"
env = force_ssbs(command, env)
command, env = start_without_steam(command, env, app_id)
sync = load_sync()