[Scummvm-cvs-logs] CVS: scummvm/scumm/smush smush_player.cpp,1.124,1.125

Pawel Kolodziejski aquadran at users.sourceforge.net
Sun Jun 20 09:39:01 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4211/scummvm/scumm/smush

Modified Files:
	smush_player.cpp 
Log Message:
moved sound calls to the same smush thread with others sounds

Index: smush_player.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/smush_player.cpp,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- smush_player.cpp	20 Jun 2004 15:28:11 -0000	1.124
+++ smush_player.cpp	20 Jun 2004 16:38:28 -0000	1.125
@@ -985,6 +985,11 @@
 		error("Unknown Chunk found at %x: %x, %d", _base->tell(), sub->getType(), sub->getSize());
 	}
 	delete sub;
+
+	if (_insanity)
+		_vm->_sound->processSoundQues();
+
+	_vm->_imuseDigital->flushTracks();
 }
 
 void SmushPlayer::setPalette(const byte *palette) {
@@ -1145,9 +1150,6 @@
 			_vm->_system->updateScreen();
 			_updateNeeded = false;
 
-			if (_insanity)
-				_vm->_sound->processSoundQues();
-
 			end_time = _vm->_system->get_msecs();
 
 			debug(4, "Smush stats: BackendUpdateScreen( %03d )", end_time - start_time);
@@ -1156,7 +1158,6 @@
 		if (_vm->_videoFinished || _vm->_quit || _vm->_saveLoadFlag)
 			break;
 		_vm->_system->delay_msecs(10);
-		_vm->_imuseDigital->flushTracks();
 	};
 
 	release();





More information about the Scummvm-git-logs mailing list