From 1d8646ee015fbf34e5d9fcc7e5f4ff589762a830 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 9 Feb 2016 02:14:08 +0100 Subject: TINSEL: Enable Miles Audio for DW1+DW1CD Demo only DW1 floppy demo doesn't seem to have audio at all --- engines/tinsel/music.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'engines/tinsel') 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 // -- cgit v1.2.3