mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 20:31:41 +00:00
Force WASAPI on Windows.
This commit is contained in:
parent
df5e48f528
commit
fbb35f36ed
1 changed files with 5 additions and 0 deletions
|
|
@ -38,6 +38,11 @@ static void CreateAudioDevice()
|
||||||
|
|
||||||
void XAudioInitializeSystem()
|
void XAudioInitializeSystem()
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
|
// Force wasapi on Windows.
|
||||||
|
SDL_setenv("SDL_AUDIODRIVER", "wasapi", true);
|
||||||
|
#endif
|
||||||
|
|
||||||
SDL_SetHint(SDL_HINT_AUDIO_CATEGORY, "playback");
|
SDL_SetHint(SDL_HINT_AUDIO_CATEGORY, "playback");
|
||||||
SDL_SetHint(SDL_HINT_AUDIO_DEVICE_APP_NAME, "Unleashed Recompiled");
|
SDL_SetHint(SDL_HINT_AUDIO_DEVICE_APP_NAME, "Unleashed Recompiled");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue