Don't try to open microphone when sound is disabled

This commit is contained in:
Eidolon 2025-05-29 15:31:24 -05:00
parent 55a8a53077
commit 610599e7d1

View file

@ -1005,7 +1005,7 @@ boolean I_SoundInputSetEnabled(boolean enabled)
{ {
if (g_input_device_id == 0 && enabled) if (g_input_device_id == 0 && enabled)
{ {
if (SDL_GetNumAudioDevices(true) == 0) if (!sound_started || SDL_GetNumAudioDevices(true) == 0)
{ {
return false; return false;
} }