Skip to content

Commit 024c35c

Browse files
Force WASAPI on Windows. (#1134)
1 parent a9e280e commit 024c35c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

UnleashedRecomp/apu/driver/sdl2_driver.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ static void CreateAudioDevice()
3838

3939
void XAudioInitializeSystem()
4040
{
41+
#ifdef _WIN32
42+
// Force wasapi on Windows.
43+
SDL_setenv("SDL_AUDIODRIVER", "wasapi", true);
44+
#endif
45+
4146
SDL_SetHint(SDL_HINT_AUDIO_CATEGORY, "playback");
4247
SDL_SetHint(SDL_HINT_AUDIO_DEVICE_APP_NAME, "Unleashed Recompiled");
4348

0 commit comments

Comments
 (0)