aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-11-18 01:23:17 +0000
committerPaweł Kołodziejski2003-11-18 01:23:17 +0000
commitc743ef9830deb82b3d28e4273373f6ed8a48cab7 (patch)
tree1648c8162c26087c2e0470eda86e32d20ea93160
parent6c814c4864a06281070e184dd04f81395ae4bba2 (diff)
downloadscummvm-rg350-c743ef9830deb82b3d28e4273373f6ed8a48cab7.tar.gz
scummvm-rg350-c743ef9830deb82b3d28e4273373f6ed8a48cab7.tar.bz2
scummvm-rg350-c743ef9830deb82b3d28e4273373f6ed8a48cab7.zip
added experimental handle for comi demo music
svn-id: r11334
-rw-r--r--scumm/imuse_digi.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/scumm/imuse_digi.cpp b/scumm/imuse_digi.cpp
index bbe5fb205c..93ce409027 100644
--- a/scumm/imuse_digi.cpp
+++ b/scumm/imuse_digi.cpp
@@ -1061,23 +1061,27 @@ int32 IMuseDigital::doCommand(int a, int b, int c, int d, int e, int f, int g, i
}
}
} else if ((_scumm->_gameId == GID_CMI) && (_scumm->_features & GF_DEMO)) {
- if (b == 1000) { // STATE_NULL
+ if (b == 2) {
+ _scumm->_sound->playBundleMusic("in2.imx");
+ } else if (b == 8) {
+ _scumm->_sound->playBundleMusic("out2.imx");
+ } else {
+ warning("imuse digital: set state unknown for cmi demo: %d, room: %d", b, this->_scumm->_currentRoom);
+ return 1;
+ }
+/* if (b == 1000) { // STATE_NULL
_scumm->_sound->stopBundleMusic();
return 0;
- } else if (b == 1001)
+ } else if (b == 1001)//1
_scumm->_sound->playBundleMusic("in1.imx");
- else if (b == 1100)
+ else if (b == 1100)//2
_scumm->_sound->playBundleMusic("in2.imx");
- else if (b == 1120)
+ else if (b == 1120)//3
_scumm->_sound->playBundleMusic("out1.imx");
- else if (b == 1140)
+ else if (b == 1140)//4
_scumm->_sound->playBundleMusic("out2.imx");
- else if (b == 1205)
- _scumm->_sound->playBundleMusic("gun.imx");
- else {
- warning("imuse digital: set state unknown for cmi demo: %d", b);
- return 1;
- }
+ else if (b == 1205)//7
+ _scumm->_sound->playBundleMusic("gun.imx");*/
} else if (_scumm->_gameId == GID_CMI) {
if (b == 1000) { // STATE_NULL
_scumm->_sound->stopBundleMusic();