mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
SCI: dont play audio on kDoSound in hoyle4
hoyle4 has garbled audio data svn-id: r52605
This commit is contained in:
parent
2bf82a8354
commit
d618678982
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user