aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Boutonné2009-05-06 17:18:38 +0000
committerArnaud Boutonné2009-05-06 17:18:38 +0000
commit8803d4b3a60aab20179cfcef360ddebb11e12512 (patch)
treed973b3b83ad61e2a022d5698098bbe87dcb2ad74
parentfd1e6fad1ee4aae653795e3ecdd8ef48c3b0f155 (diff)
downloadscummvm-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
-rw-r--r--engines/gob/sound/sound.cpp21
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() {