[Scummvm-cvs-logs] CVS: scummvm/common main.cpp,1.32,1.33

Max Horn fingolfin at users.sourceforge.net
Fri Jul 4 06:19:12 CEST 2003


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv21587

Modified Files:
	main.cpp 
Log Message:
prevent (or rather: make much less likely) some sound output related race conditions

Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/main.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- main.cpp	6 Jun 2003 22:51:31 -0000	1.32
+++ main.cpp	4 Jul 2003 13:17:56 -0000	1.33
@@ -229,6 +229,9 @@
 	// Run the game engine
 	engine->go();
 
+	// Stop all sound processing now (this prevents some race conditions later on)
+	system->clear_sound_proc();
+
 	// Free up memory
 	delete engine;
 	delete g_gui;





More information about the Scummvm-git-logs mailing list