aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-09 02:14:08 +0100
committerMartin Kiewitz2016-02-09 02:14:08 +0100
commit1d8646ee015fbf34e5d9fcc7e5f4ff589762a830 (patch)
tree2ceaefa8701e9bbd1c4729e9ec53cf6720ddffad /engines/tinsel
parentce595cb92d5862c0bc5cdd703d1dd4e286ed3db9 (diff)
downloadscummvm-rg350-1d8646ee015fbf34e5d9fcc7e5f4ff589762a830.tar.gz
scummvm-rg350-1d8646ee015fbf34e5d9fcc7e5f4ff589762a830.tar.bz2
scummvm-rg350-1d8646ee015fbf34e5d9fcc7e5f4ff589762a830.zip
TINSEL: Enable Miles Audio for DW1+DW1CD Demo only
DW1 floppy demo doesn't seem to have audio at all
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/music.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/engines/tinsel/music.cpp b/engines/tinsel/music.cpp
index 2a9804263a..e0c1f8d1f9 100644
--- a/engines/tinsel/music.cpp
+++ b/engines/tinsel/music.cpp
@@ -381,11 +381,25 @@ MidiMusicPlayer::MidiMusicPlayer(TinselEngine *vm) {
bool milesAudioEnabled = false;
if (vm->getPlatform() == Common::kPlatformDOS) {
- // Enable Miles Audio for DOS only
- milesAudioEnabled = true;
+ // Enable Miles Audio for DOS platform only...
+ switch (vm->getGameID()) {
+ case GID_DW1:
+ if (!vm->getIsADGFDemo()) {
+ // ...for Discworld 1
+ milesAudioEnabled = true;
+ } else {
+ if (vm->isV1CD()) {
+ // ...and for Discworld 1 CD Demo
+ milesAudioEnabled = true;
+ }
+ }
+ break;
+ default:
+ break;
+ }
}
- if ((vm->getGameId() == GID_DW1) && (milesAudioEnabled)) {
+ if (milesAudioEnabled) {
// Discworld 1 (DOS) uses Miles Audio 3
// use our own Miles Audio drivers
//