[Scummvm-cvs-logs] CVS: scummvm/scumm imuse_digi.cpp,1.57,1.58

Pawel Kolodziejski aquadran at users.sourceforge.net
Mon Nov 17 16:36:04 CET 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv17897

Modified Files:
	imuse_digi.cpp 
Log Message:
added music support for dig demo

Index: imuse_digi.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse_digi.cpp,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- imuse_digi.cpp	17 Nov 2003 21:16:43 -0000	1.57
+++ imuse_digi.cpp	18 Nov 2003 00:35:04 -0000	1.58
@@ -999,6 +999,10 @@
 		switch (sub_cmd) {
 		case 0x600: // control volume fade
 			debug(5, "ImuseFadeParam - fading volume sample(%d), to volume(%d) with speed(%d)", sample, d, e);
+			if ((_scumm->_gameId == GID_DIG) && (_scumm->_features & GF_DEMO)) {
+				stopSound(sample);
+				return 0;
+			}
 			for (l = 0; l < MAX_DIGITAL_CHANNELS; l++) {
 				if ((_channel[l]._idSound == sample) && _channel[l]._used) {
 					chan = l;
@@ -1028,6 +1032,15 @@
 		}
 	case 0x1000: // ImuseSetState
 		debug(5, "ImuseSetState (%d)", b);
+		if ((_scumm->_gameId == GID_DIG) && (_scumm->_features & GF_DEMO)) {
+			if (b == 1)
+				startSound(1);
+			else {
+				if (getSoundStatus(4) == 0)
+					startSound(4);
+			}
+			return 0;
+		}
 		if (_scumm->_gameId == GID_DIG) {
 			if (b == 1000) {		// STATE_NULL
 				_scumm->_sound->stopBundleMusic();





More information about the Scummvm-git-logs mailing list