Ticket #5356: ite-demo-sound.diff
File ite-demo-sound.diff, 1.0 KB (added by , 14 years ago) |
---|
-
engines/saga/sndres.cpp
225 225 } 226 226 227 227 Common::SeekableReadStream& readS = *file; 228 bool uncompressedSound = false; 228 229 229 230 if (soundResourceLength >= 8) { 230 231 byte header[8]; … … 242 243 resourceType = kSoundShorten; 243 244 } 244 245 245 bool uncompressedSound = false;246 246 // If patch data exists for sound resource 4 (used in ITE intro), don't treat this sound as compressed 247 247 // Patch data for this resource is in file p2_a.iaf or p2_a.voc 248 248 if (_vm->getGameId() == GID_ITE && resourceId == 4 && context->getResourceData(resourceId)->patchData != NULL) … … 277 277 buffer.flags &= ~Audio::FLAG_16BITS; 278 278 } else { 279 279 // Voice files in newer ITE demo versions are OKI ADPCM (VOX) encoded 280 if (! scumm_stricmp(context->fileName(), "voicesd.rsc"))280 if (!uncompressedSound && !scumm_stricmp(context->fileName(), "voicesd.rsc")) 281 281 resourceType = kSoundVOX; 282 282 } 283 283 }