aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2009-10-24 03:52:38 +0000
committerTravis Howell2009-10-24 03:52:38 +0000
commita5c97673eb8ed705ad58634cef889cbdd808ed64 (patch)
tree603976f6864cd9b36dcf98b43523e22745234c9e /engines
parent553555445523ab8041883180d6879c8b3f488f5d (diff)
downloadscummvm-rg350-a5c97673eb8ed705ad58634cef889cbdd808ed64.tar.gz
scummvm-rg350-a5c97673eb8ed705ad58634cef889cbdd808ed64.tar.bz2
scummvm-rg350-a5c97673eb8ed705ad58634cef889cbdd808ed64.zip
The CD music was hard coded in PCE version of Loom.
svn-id: r45356
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/sound.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp
index 99cbbc9a7d..177847b204 100644
--- a/engines/scumm/sound.cpp
+++ b/engines/scumm/sound.cpp
@@ -164,9 +164,18 @@ void Sound::playSound(int soundID) {
int rate;
byte flags = Audio::Mixer::FLAG_UNSIGNED | Audio::Mixer::FLAG_AUTOFREE;
- // FIXME: Sound resources are currently missing
- if (_vm->_game.id == GID_LOOM && _vm->_game.platform == Common::kPlatformPCEngine)
+ if (_vm->_game.id == GID_LOOM && _vm->_game.platform == Common::kPlatformPCEngine) {
+ if (soundID >= 13 && soundID <= 32) {
+ static const char tracks[20] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 21, 19, 20, 21};
+
+ _currentCDSound = soundID;
+ playCDTrack(tracks[soundID - 13], 1, 0, 0);
+ } else {
+ // FIXME: Sound effect resources are currently missing
+ printf("Sound %d unsupported\n", soundID);
+ }
return;
+ }
debugC(DEBUG_SOUND, "playSound #%d (room %d)", soundID,
_vm->getResourceRoomNr(rtSound, soundID));