We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9e280e commit 024c35cCopy full SHA for 024c35c
1 file changed
UnleashedRecomp/apu/driver/sdl2_driver.cpp
@@ -38,6 +38,11 @@ static void CreateAudioDevice()
38
39
void XAudioInitializeSystem()
40
{
41
+#ifdef _WIN32
42
+ // Force wasapi on Windows.
43
+ SDL_setenv("SDL_AUDIODRIVER", "wasapi", true);
44
+#endif
45
+
46
SDL_SetHint(SDL_HINT_AUDIO_CATEGORY, "playback");
47
SDL_SetHint(SDL_HINT_AUDIO_DEVICE_APP_NAME, "Unleashed Recompiled");
48
0 commit comments