From cdc27805220328dc7c44e34cd5e55b589e1cd05e Mon Sep 17 00:00:00 2001 From: James Brown Date: Sat, 11 May 2002 21:22:05 +0000 Subject: Do waveout audio on win32, to allow cooperative sound. SDLs 'dsound' driver doesn't do this, unfortunatly (although there's no reason it shouldn't!) svn-id: r4283 --- sdl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sdl.cpp') diff --git a/sdl.cpp b/sdl.cpp index eb501ff7ea..def195189e 100644 --- a/sdl.cpp +++ b/sdl.cpp @@ -220,6 +220,10 @@ OSystem *OSystem_SDL::create(int gfx_mode, bool full_screen) { error("Could not initialize SDL: %s.\n", SDL_GetError()); } +#ifdef WIN32 /* Use waveout on win32, not */ + SDL_AudioInit("waveout"); /* dsound - unfortunatly dsound */ +#endif /* doesn't do COOPERATIVE mode*/ + SDL_ShowCursor(SDL_DISABLE); SDL_SetTimer(5 * 60 * 1000, (SDL_TimerCallback) autosave); -- cgit v1.2.3