diff options
-rw-r--r-- | engines/sci/resource.cpp | 4 | ||||
-rw-r--r-- | engines/sci/sound/audio.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 076575bbfb..02d8e62137 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -285,8 +285,8 @@ void ResourceManager::checkIfAudioVolumeIsCompressed(ResourceSource *source) { uint32 recordCount = file->readUint32LE(); if (!recordCount) error("compressed audio volume doesn't contain any entries!"); - source->audioCompressionOffsetMapping = new int32[(recordCount + 1) * 4 * 2]; - file->read(&source->audioCompressionOffsetMapping, recordCount * 4 * 2); + source->audioCompressionOffsetMapping = new int32[(recordCount + 1) * 2]; + file->read(source->audioCompressionOffsetMapping, recordCount * 4 * 2); // Put ending zero source->audioCompressionOffsetMapping[recordCount * 2] = 0; source->audioCompressionOffsetMapping[recordCount * 2 + 1] = file->size(); diff --git a/engines/sci/sound/audio.cpp b/engines/sci/sound/audio.cpp index 96a3f1c577..40e6f2e03e 100644 --- a/engines/sci/sound/audio.cpp +++ b/engines/sci/sound/audio.cpp @@ -236,17 +236,17 @@ Audio::RewindableAudioStream *AudioPlayer::getAudioStream(uint32 number, uint32 switch (audioCompressionType) { case MKID_BE('MP3 '): #ifdef USE_MAD - audioStream = Audio::makeMP3Stream(compressedStream, DisposeAfterUse::YES); + audioStream = Audio::makeMP3Stream(compressedStream, DisposeAfterUse::NO); #endif break; case MKID_BE('OGG '): #ifdef USE_VORBIS - audioStream = Audio::makeVorbisStream(compressedStream, DisposeAfterUse::YES); + audioStream = Audio::makeVorbisStream(compressedStream, DisposeAfterUse::NO); #endif break; case MKID_BE('FLAC'): #ifdef USE_FLAC - audioStream = Audio::makeFLACStream(compressedStream, DisposeAfterUse::YES); + audioStream = Audio::makeFLACStream(compressedStream, DisposeAfterUse::NO); #endif break; } |