From a7147f327fa40602408807ed3267b512743d17aa Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 30 Oct 2025 07:27:23 -0700 Subject: [PATCH] Temporarily disable WASAPI device roles Setting AudioCategory_GameChat breaks audio on several devices, including Behringer U-PHORIA UM2 and RODE NT-USB Mini. We'll disable this for now until we understand more about what's happening. --- src/audio/wasapi/SDL_wasapi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/audio/wasapi/SDL_wasapi.c b/src/audio/wasapi/SDL_wasapi.c index 443bbd5367..57a1d2c24a 100644 --- a/src/audio/wasapi/SDL_wasapi.c +++ b/src/audio/wasapi/SDL_wasapi.c @@ -739,6 +739,9 @@ static bool mgmtthrtask_PrepDevice(void *userdata) SDL_zero(audioProps); audioProps.cbSize = sizeof(audioProps); +// Setting AudioCategory_GameChat breaks audio on several devices, including Behringer U-PHORIA UM2 and RODE NT-USB Mini. +// We'll disable this for now until we understand more about what's happening. +#if 0 const char *hint = SDL_GetHint(SDL_HINT_AUDIO_DEVICE_STREAM_ROLE); if (hint && *hint) { if (SDL_strcasecmp(hint, "Communications") == 0) { @@ -754,6 +757,7 @@ static bool mgmtthrtask_PrepDevice(void *userdata) audioProps.eCategory = AudioCategory_Media; } } +#endif if (SDL_GetHintBoolean(SDL_HINT_AUDIO_DEVICE_RAW_STREAM, false)) { audioProps.Options = AUDCLNT_STREAMOPTIONS_RAW;