aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2011-10-20 19:02:15 +0300
committerFilippos Karapetis2011-10-20 19:02:15 +0300
commit1736345906af095c863a62ded2638ce92c2a0704 (patch)
tree3b5caa76cd535ccc8da9ad82b1c6076b7ea5ff03 /engines
parent2545dd22aab5c14b74860c015572794063f7719c (diff)
downloadscummvm-rg350-1736345906af095c863a62ded2638ce92c2a0704.tar.gz
scummvm-rg350-1736345906af095c863a62ded2638ce92c2a0704.tar.bz2
scummvm-rg350-1736345906af095c863a62ded2638ce92c2a0704.zip
SCI: The demo of GK1 has no alternate sound effects.
This fixes the sound effect heard in the "Day 1" screen
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sound/soundcmd.cpp9
1 files 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