diff options
author | Arnaud Boutonné | 2009-05-06 17:18:38 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2009-05-06 17:18:38 +0000 |
commit | 8803d4b3a60aab20179cfcef360ddebb11e12512 (patch) | |
tree | d973b3b83ad61e2a022d5698098bbe87dcb2ad74 /engines/gob/sound/sound.cpp | |
parent | fd1e6fad1ee4aae653795e3ecdd8ef48c3b0f155 (diff) | |
download | scummvm-rg350-8803d4b3a60aab20179cfcef360ddebb11e12512.tar.gz scummvm-rg350-8803d4b3a60aab20179cfcef360ddebb11e12512.tar.bz2 scummvm-rg350-8803d4b3a60aab20179cfcef360ddebb11e12512.zip |
Gob - Added atmosphere music to WinGob1, WinGob2 and WinGob3
svn-id: r40363
Diffstat (limited to 'engines/gob/sound/sound.cpp')
-rw-r--r-- | engines/gob/sound/sound.cpp | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/engines/gob/sound/sound.cpp b/engines/gob/sound/sound.cpp index dbb6b7685b..f0cf17b989 100644 --- a/engines/gob/sound/sound.cpp +++ b/engines/gob/sound/sound.cpp @@ -262,10 +262,12 @@ void Sound::adlibPlayTrack(const char *trackname) { } void Sound::adlibPlayBgMusic() { + int track; + if (!_adlib) return; - static const char *tracks[] = { + static const char *tracksMac[] = { // "musmac1.adl", // TODO: This track isn't played correctly at all yet "musmac2.adl", "musmac3.adl", @@ -274,8 +276,21 @@ void Sound::adlibPlayBgMusic() { "musmac6.adl" }; - int track = _vm->_util->getRandom(ARRAYSIZE(tracks)); - adlibPlayTrack(tracks[track]); + static const char *tracksWin[] = { + "musmac1.mid", + "musmac2.mid", + "musmac3.mid", + "musmac4.mid", + "musmac5.mid" + }; + + if (_vm->getPlatform() == Common::kPlatformWindows) { + track = _vm->_util->getRandom(ARRAYSIZE(tracksWin)); + adlibPlayTrack(tracksWin[track]); + } else { + track = _vm->_util->getRandom(ARRAYSIZE(tracksMac)); + adlibPlayTrack(tracksMac[track]); + } } void Sound::adlibPlay() { |