aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2002-05-11 21:22:05 +0000
committerJames Brown2002-05-11 21:22:05 +0000
commitcdc27805220328dc7c44e34cd5e55b589e1cd05e (patch)
treebce39289cc25961c281d9e320c1ede9f72f3db35
parent740785f110b9988ee3f8efe6837d29ee88d63467 (diff)
downloadscummvm-rg350-cdc27805220328dc7c44e34cd5e55b589e1cd05e.tar.gz
scummvm-rg350-cdc27805220328dc7c44e34cd5e55b589e1cd05e.tar.bz2
scummvm-rg350-cdc27805220328dc7c44e34cd5e55b589e1cd05e.zip
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
-rw-r--r--sdl.cpp4
1 files changed, 4 insertions, 0 deletions
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);