diff options
author | James Brown | 2002-05-11 21:22:05 +0000 |
---|---|---|
committer | James Brown | 2002-05-11 21:22:05 +0000 |
commit | cdc27805220328dc7c44e34cd5e55b589e1cd05e (patch) | |
tree | bce39289cc25961c281d9e320c1ede9f72f3db35 /sdl.cpp | |
parent | 740785f110b9988ee3f8efe6837d29ee88d63467 (diff) | |
download | scummvm-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
Diffstat (limited to 'sdl.cpp')
-rw-r--r-- | sdl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |