From 610599e7d157fdcffc4e74b74412c2e749036e1d Mon Sep 17 00:00:00 2001 From: Eidolon Date: Thu, 29 May 2025 15:31:24 -0500 Subject: [PATCH] Don't try to open microphone when sound is disabled --- src/sdl/new_sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/new_sound.cpp b/src/sdl/new_sound.cpp index 1e1d93797..1fa9deea2 100644 --- a/src/sdl/new_sound.cpp +++ b/src/sdl/new_sound.cpp @@ -1005,7 +1005,7 @@ boolean I_SoundInputSetEnabled(boolean enabled) { if (g_input_device_id == 0 && enabled) { - if (SDL_GetNumAudioDevices(true) == 0) + if (!sound_started || SDL_GetNumAudioDevices(true) == 0) { return false; }