SCI: dont play audio on kDoSound in hoyle4

hoyle4 has garbled audio data

svn-id: r52605
This commit is contained in:
Martin Kiewitz 2010-09-06 19:00:43 +00:00
parent 2bf82a8354
commit d618678982

View File

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