diff options
author | Travis Howell | 2003-12-29 08:19:57 +0000 |
---|---|---|
committer | Travis Howell | 2003-12-29 08:19:57 +0000 |
commit | 7e388f2237a9ad22214374bac3ffbb2a9d14f21a (patch) | |
tree | ea65b30a232667768abfee5f3c807064a169aec1 /scumm/sound.cpp | |
parent | e9766658b666dfe5065ccb5f27549f0719b16cda (diff) | |
download | scummvm-rg350-7e388f2237a9ad22214374bac3ffbb2a9d14f21a.tar.gz scummvm-rg350-7e388f2237a9ad22214374bac3ffbb2a9d14f21a.tar.bz2 scummvm-rg350-7e388f2237a9ad22214374bac3ffbb2a9d14f21a.zip |
Add support for mp3 or ogg musics tracks for Monkey Island 1 for Amiga.
svn-id: r12005
Diffstat (limited to 'scumm/sound.cpp')
-rw-r--r-- | scumm/sound.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 099205f7dd..42e7280329 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -371,8 +371,23 @@ void Sound::playSound(int soundID) { if (_scumm->_gameId == GID_MONKEY_VGA || _scumm->_gameId == GID_MONKEY_EGA) { // Sound is currently not supported at all in the amiga versions of these games - if (_scumm->_features & GF_AMIGA) + if (_scumm->_features & GF_AMIGA) { + int track = -1; + if (soundID == 50) + track = 17; + else if (soundID == 53) + track = 18; + else if ((soundID >= 100) && (soundID <= 118)) { + char tracks[19] = {7,6,4,12,2,2,2,2,5,10,1,16,8,9,13,11,15,3,14}; + track = tracks[soundID - 100]; + } + if (track != -1) { + playCDTrack(track,((track < 5) || (track > 16)) ? 1 : -1,0,0); + stopCDTimer(); + _currentCDSound = soundID; + } return; + } // Works around the fact that in some places in MonkeyEGA/VGA, // the music is never explicitly stopped. |