- Opps missed out one SDL vs DirectX sound api issue

This commit is contained in:
normmatt234 2006-11-14 04:44:58 +00:00
parent 7cf7fa62d9
commit 1380659c61
1 changed files with 5 additions and 0 deletions

View File

@ -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;