From 1380659c6140c93485f23e381debb3e828a97d6a Mon Sep 17 00:00:00 2001 From: normmatt234 Date: Tue, 14 Nov 2006 04:44:58 +0000 Subject: [PATCH] - Opps missed out one SDL vs DirectX sound api issue --- desmume/src/windows/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desmume/src/windows/main.c b/desmume/src/windows/main.c index d2b6edd20..a8585ecbf 100644 --- a/desmume/src/windows/main.c +++ b/desmume/src/windows/main.c @@ -263,7 +263,12 @@ int WINAPI WinMain (HINSTANCE hThisInstance, #endif NDS_Init(); + +#ifdef USE_SDL_AUDIO if (SPU_ChangeSoundCore(SNDCORE_SDL, 735 * 4) != 0) +#else + if (SPU_ChangeSoundCore(SNDCORE_DIRECTX, 735 * 4) != 0) +#endif { MessageBox(hwnd,"Unable to initialize DirectSound","Error",MB_OK); return messages.wParam;