[Scummvm-cvs-logs] CVS: scummvm sdl.cpp,1.119,1.120

James Brown ender at users.sourceforge.net
Sat May 11 14:23:01 CEST 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv30983

Modified Files:
	sdl.cpp 
Log Message:
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!)




Index: sdl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sdl.cpp,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- sdl.cpp	10 May 2002 15:33:02 -0000	1.119
+++ sdl.cpp	11 May 2002 21:22:05 -0000	1.120
@@ -220,6 +220,10 @@
 		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);
 





More information about the Scummvm-git-logs mailing list