aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound/soundcmd.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-09-06 19:00:43 +0000
committerMartin Kiewitz2010-09-06 19:00:43 +0000
commitd6186789828e186c828a1909115296582ec20651 (patch)
treef8c9904a676937fa1c378e9c95ac4c19cc6b54db /engines/sci/sound/soundcmd.cpp
parent2bf82a8354df9bbf4ef5ebaedc928ad10c7c986c (diff)
downloadscummvm-rg350-d6186789828e186c828a1909115296582ec20651.tar.gz
scummvm-rg350-d6186789828e186c828a1909115296582ec20651.tar.bz2
scummvm-rg350-d6186789828e186c828a1909115296582ec20651.zip
SCI: dont play audio on kDoSound in hoyle4
hoyle4 has garbled audio data svn-id: r52605
Diffstat (limited to 'engines/sci/sound/soundcmd.cpp')
-rw-r--r--engines/sci/sound/soundcmd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp
index c5bb7fa707..31664f56bd 100644
--- a/engines/sci/sound/soundcmd.cpp
+++ b/engines/sci/sound/soundcmd.cpp
@@ -78,8 +78,12 @@ void SoundCommandParser::processInitSound(reg_t obj) {
// a relevant audio resource, play it, otherwise switch to synthesized
// 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
- if (getSciVersion() >= SCI_VERSION_1_1 && _resMan->testResource(ResourceId(kResourceTypeAudio, resourceId))) {
+ if (checkAudioResource && _resMan->testResource(ResourceId(kResourceTypeAudio, resourceId))) {
// Found a relevant audio resource, play it
int sampleLen;
newSound->pStreamAud = _audio->getAudioStream(resourceId, 65535, &sampleLen);