From 1736345906af095c863a62ded2638ce92c2a0704 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 20 Oct 2011 19:02:15 +0300 Subject: SCI: The demo of GK1 has no alternate sound effects. This fixes the sound effect heard in the "Day 1" screen --- engines/sci/sound/soundcmd.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp index 699a89d122..274c532779 100644 --- a/engines/sci/sound/soundcmd.cpp +++ b/engines/sci/sound/soundcmd.cpp @@ -83,10 +83,11 @@ void SoundCommandParser::initSoundResource(MusicEntry *newSound) { // effects. If the resource exists, play it using map 65535 (sound // effects map) bool checkAudioResource = getSciVersion() >= SCI_VERSION_1_1; - if (g_sci->getGameId() == GID_HOYLE4) - checkAudioResource = false; // hoyle 4 has garbled audio resources in place of the sound resources - // if we play those, we will only make the user deaf and break speakers. Sierra SCI doesn't play anything - // on soundblaster. FIXME: check, why this is + // Hoyle 4 has garbled audio resources in place of the sound resources. + // The demo of GK1 has no alternate sound effects. + if ((g_sci->getGameId() == GID_HOYLE4) || + (g_sci->getGameId() == GID_GK1 && g_sci->isDemo())) + checkAudioResource = false; if (checkAudioResource && _resMan->testResource(ResourceId(kResourceTypeAudio, newSound->resourceId))) { // Found a relevant audio resource, create an audio stream if there is -- cgit v1.2.3