SCI: The demo of GK1 has no alternate sound effects.

This fixes the sound effect heard in the "Day 1" screen
This commit is contained in:
Filippos Karapetis 2011-10-20 19:02:15 +03:00
parent 2545dd22aa
commit 1736345906

View File

@ -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