diff options
author | Paweł Kołodziejski | 2003-11-17 18:59:26 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-11-17 18:59:26 +0000 |
commit | 8272b46b12bb6a7dd101a9801b099d210faeef89 (patch) | |
tree | ab78ce32cc5095d214f9c56bb3240d7a6c3fe834 /scumm | |
parent | eed9a5d9ce1b0ee65f37a54d25b1fa0e582c7ecc (diff) | |
download | scummvm-rg350-8272b46b12bb6a7dd101a9801b099d210faeef89.tar.gz scummvm-rg350-8272b46b12bb6a7dd101a9801b099d210faeef89.tar.bz2 scummvm-rg350-8272b46b12bb6a7dd101a9801b099d210faeef89.zip |
added music hacks for cmi demo, please test it
svn-id: r11323
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/imuse_digi.cpp | 20 | ||||
-rw-r--r-- | scumm/scumm.h | 3 |
2 files changed, 20 insertions, 3 deletions
diff --git a/scumm/imuse_digi.cpp b/scumm/imuse_digi.cpp index fc5356ba21..8b65e55863 100644 --- a/scumm/imuse_digi.cpp +++ b/scumm/imuse_digi.cpp @@ -1030,7 +1030,6 @@ int32 IMuseDigital::doCommand(int a, int b, int c, int d, int e, int f, int g, i debug(5, "ImuseSetState (%d)", b); if (_scumm->_gameId == GID_DIG) { if (b == 1000) { // STATE_NULL - // FIXME: Fade this out properly, in the same increments as the real engine _scumm->_sound->stopBundleMusic(); return 0; } @@ -1048,9 +1047,26 @@ int32 IMuseDigital::doCommand(int a, int b, int c, int d, int e, int f, int g, i return 0; } } + } else if (_scumm->_gameId == GID_CMIDEMO) { + if (b == 1000) { // STATE_NULL + _scumm->_sound->stopBundleMusic(); + return 0; + } else if (b == 1001) + _scumm->_sound->playBundleMusic("in1.imx"); + else if (b == 1100) + _scumm->_sound->playBundleMusic("in2.imx"); + else if (b == 1120) + _scumm->_sound->playBundleMusic("out1.imx"); + else if (b == 1140) + _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 (_scumm->_gameId == GID_CMI) { if (b == 1000) { // STATE_NULL - // FIXME: Fade this out properly, in the same increments as the real engine _scumm->_sound->stopBundleMusic(); return 0; } diff --git a/scumm/scumm.h b/scumm/scumm.h index dd7ddc8659..d0bfd2a938 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -190,7 +190,8 @@ enum ScummGameId { GID_PUTTPUTT, GID_PJSDEMO, GID_MONKEY_SEGA, - GID_FTDEMO + GID_FTDEMO, + GID_CMIDEMO }; #define _maxRooms res.num[rtRoom] |