diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/sound.cpp | 2 | ||||
-rw-r--r-- | engines/cruise/overlay.cpp | 4 | ||||
-rw-r--r-- | engines/groovie/resource.cpp | 2 | ||||
-rw-r--r-- | engines/groovie/saveload.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/resource_intern.cpp | 4 | ||||
-rw-r--r-- | engines/kyra/saveload_hof.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/saveload_lol.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/saveload_mr.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/screen.cpp | 2 | ||||
-rw-r--r-- | engines/m4/compression.h | 2 | ||||
-rw-r--r-- | engines/made/redreader.cpp | 2 | ||||
-rw-r--r-- | engines/mohawk/bitmap.cpp | 4 | ||||
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 2 | ||||
-rw-r--r-- | engines/mohawk/sound.cpp | 4 | ||||
-rw-r--r-- | engines/mohawk/video/qt_player.cpp | 4 | ||||
-rw-r--r-- | engines/parallaction/disk_ns.cpp | 4 | ||||
-rw-r--r-- | engines/parallaction/font.cpp | 2 | ||||
-rw-r--r-- | engines/saga/sound.cpp | 6 | ||||
-rw-r--r-- | engines/sci/sound/audio.cpp | 6 | ||||
-rw-r--r-- | engines/scumm/saveload.cpp | 2 | ||||
-rw-r--r-- | engines/sword2/music.cpp | 4 | ||||
-rw-r--r-- | engines/teenagent/pack.cpp | 2 | ||||
-rw-r--r-- | engines/tinsel/music.cpp | 2 | ||||
-rw-r--r-- | engines/tinsel/sound.cpp | 4 |
24 files changed, 36 insertions, 36 deletions
diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp index 26455e39a6..a0d750199b 100644 --- a/engines/agi/sound.cpp +++ b/engines/agi/sound.cpp @@ -84,7 +84,7 @@ const uint8 *PCjrSound::getVoicePointer(uint voiceNum) { } IIgsSample::IIgsSample(uint8 *data, uint32 len, int resnum, SoundMgr &manager) : AgiSound(manager) { - Common::MemoryReadStream stream(data, len, Common::DisposeAfterUse::YES); + Common::MemoryReadStream stream(data, len, DisposeAfterUse::YES); // Check that the header was read ok and that it's of the correct type if (_header.read(stream) && _header.type == AGI_SOUND_SAMPLE) { // An Apple IIGS AGI sample resource diff --git a/engines/cruise/overlay.cpp b/engines/cruise/overlay.cpp index f93e8f37fc..f0611492bd 100644 --- a/engines/cruise/overlay.cpp +++ b/engines/cruise/overlay.cpp @@ -209,7 +209,7 @@ int loadOverlay(const char *scriptName) { debug(1, "OVL loading done..."); - Common::MemoryReadStream s(unpackedBuffer, unpackedSize, Common::DisposeAfterUse::YES); + Common::MemoryReadStream s(unpackedBuffer, unpackedSize, DisposeAfterUse::YES); unpackedBuffer = NULL; ovlData = overlayTable[scriptIdx].ovlData; @@ -590,7 +590,7 @@ int loadOverlay(const char *scriptName) { loadPackedFileToMem(fileIdx, (uint8 *) unpackedBuffer); } - Common::MemoryReadStream s2(unpackedBuffer, unpackedSize, Common::DisposeAfterUse::YES); + Common::MemoryReadStream s2(unpackedBuffer, unpackedSize, DisposeAfterUse::YES); unpackedBuffer = NULL; ovlData->specialString1Length = s2.readUint16BE(); diff --git a/engines/groovie/resource.cpp b/engines/groovie/resource.cpp index 6a3a9c9f04..866095eb78 100644 --- a/engines/groovie/resource.cpp +++ b/engines/groovie/resource.cpp @@ -65,7 +65,7 @@ Common::SeekableReadStream *ResMan::open(uint32 fileRef) { } // Returning the resource substream - return new Common::SeekableSubReadStream(gjdFile, resInfo.offset, resInfo.offset + resInfo.size, Common::DisposeAfterUse::YES); + return new Common::SeekableSubReadStream(gjdFile, resInfo.offset, resInfo.offset + resInfo.size, DisposeAfterUse::YES); } diff --git a/engines/groovie/saveload.cpp b/engines/groovie/saveload.cpp index 98c02284f1..6e4a61fbac 100644 --- a/engines/groovie/saveload.cpp +++ b/engines/groovie/saveload.cpp @@ -138,7 +138,7 @@ Common::InSaveFile *SaveLoad::openForLoading(const Common::String &target, int s } // Return a substream, skipping the metadata - Common::SeekableSubReadStream *sub = new Common::SeekableSubReadStream(savefile, metaDataSize, savefile->size(), Common::DisposeAfterUse::YES); + Common::SeekableSubReadStream *sub = new Common::SeekableSubReadStream(savefile, metaDataSize, savefile->size(), DisposeAfterUse::YES); // Move to the beginning of the substream sub->seek(0, SEEK_SET); diff --git a/engines/kyra/resource_intern.cpp b/engines/kyra/resource_intern.cpp index 6ecdf68d35..dc1bcf90b7 100644 --- a/engines/kyra/resource_intern.cpp +++ b/engines/kyra/resource_intern.cpp @@ -78,7 +78,7 @@ Common::SeekableReadStream *PlainArchive::createReadStreamForMember(const Common if (!parent) return 0; - return new Common::SeekableSubReadStream(parent, fDesc->_value.offset, fDesc->_value.offset + fDesc->_value.size, Common::DisposeAfterUse::YES); + return new Common::SeekableSubReadStream(parent, fDesc->_value.offset, fDesc->_value.offset + fDesc->_value.size, DisposeAfterUse::YES); } // -> CachedArchive implementation @@ -130,7 +130,7 @@ Common::SeekableReadStream *CachedArchive::createReadStreamForMember(const Commo if (fDesc == _files.end()) return 0; - return new Common::MemoryReadStream(fDesc->_value.data, fDesc->_value.size, Common::DisposeAfterUse::NO); + return new Common::MemoryReadStream(fDesc->_value.data, fDesc->_value.size, DisposeAfterUse::NO); } // ResFileLoader implementations diff --git a/engines/kyra/saveload_hof.cpp b/engines/kyra/saveload_hof.cpp index 4ddd2a5392..2d276cc6a4 100644 --- a/engines/kyra/saveload_hof.cpp +++ b/engines/kyra/saveload_hof.cpp @@ -152,7 +152,7 @@ Common::Error KyraEngine_HoF::loadGameState(int slot) { int loadedZTable = _characterShapeFile; - Common::SeekableSubReadStreamEndian in(saveFile, saveFile->pos(), saveFile->size(), !header.originalSave, Common::DisposeAfterUse::YES); + Common::SeekableSubReadStreamEndian in(saveFile, saveFile->pos(), saveFile->size(), !header.originalSave, DisposeAfterUse::YES); _screen->hideMouse(); diff --git a/engines/kyra/saveload_lol.cpp b/engines/kyra/saveload_lol.cpp index 54beb7a98a..480714e5c9 100644 --- a/engines/kyra/saveload_lol.cpp +++ b/engines/kyra/saveload_lol.cpp @@ -54,7 +54,7 @@ Common::Error LoLEngine::loadGameState(int slot) { _screen->fillRect(112, 0, 287, 119, 0, 0); _screen->updateScreen(); - Common::SeekableSubReadStreamEndian in(saveFile, saveFile->pos(), saveFile->size(), !header.originalSave, Common::DisposeAfterUse::YES); + Common::SeekableSubReadStreamEndian in(saveFile, saveFile->pos(), saveFile->size(), !header.originalSave, DisposeAfterUse::YES); for (int i = 0; i < 4; i++) { LoLCharacter *c = &_characters[i]; diff --git a/engines/kyra/saveload_mr.cpp b/engines/kyra/saveload_mr.cpp index 88befc7f37..737c83c33d 100644 --- a/engines/kyra/saveload_mr.cpp +++ b/engines/kyra/saveload_mr.cpp @@ -150,7 +150,7 @@ Common::Error KyraEngine_MR::loadGameState(int slot) { int curShapes = _characterShapeFile; - Common::SeekableSubReadStreamEndian in(saveFile, saveFile->pos(), saveFile->size(), !header.originalSave, Common::DisposeAfterUse::YES); + Common::SeekableSubReadStreamEndian in(saveFile, saveFile->pos(), saveFile->size(), !header.originalSave, DisposeAfterUse::YES); _screen->hideMouse(); diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index 5d5ad0be74..708a7f41f3 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -2969,7 +2969,7 @@ bool Screen::loadPaletteTable(const char *filename, int firstPalette) { } void Screen::loadPalette(const byte *data, Palette &pal, int bytes) { - Common::MemoryReadStream stream(data, bytes, Common::DisposeAfterUse::NO); + Common::MemoryReadStream stream(data, bytes, DisposeAfterUse::NO); if (_isAmiga) pal.loadAmigaPalette(stream, 0, stream.size() / Palette::kAmigaBytesPerColor); diff --git a/engines/m4/compression.h b/engines/m4/compression.h index 938c14dd81..ddafaa3440 100644 --- a/engines/m4/compression.h +++ b/engines/m4/compression.h @@ -59,7 +59,7 @@ public: MadsPackEntry &getItem(int index) const { return _items[index]; } MadsPackEntry &operator[](int index) const { return _items[index]; } Common::MemoryReadStream *getItemStream(int index) { - return new Common::MemoryReadStream(_items[index].data, _items[index].size, Common::DisposeAfterUse::NO); + return new Common::MemoryReadStream(_items[index].data, _items[index].size, DisposeAfterUse::NO); } int getDataOffset() const { return _dataOffset; } }; diff --git a/engines/made/redreader.cpp b/engines/made/redreader.cpp index c89068b16e..4ca8d27eab 100644 --- a/engines/made/redreader.cpp +++ b/engines/made/redreader.cpp @@ -45,7 +45,7 @@ Common::MemoryReadStream *RedReader::load(const char *redFilename, const char *f lzhDec->decompress(fd, fileBuf, fileEntry.compSize, fileEntry.origSize); delete lzhDec; - return new Common::MemoryReadStream(fileBuf, fileEntry.origSize, Common::DisposeAfterUse::YES); + return new Common::MemoryReadStream(fileBuf, fileEntry.origSize, DisposeAfterUse::YES); } diff --git a/engines/mohawk/bitmap.cpp b/engines/mohawk/bitmap.cpp index 287b481d4c..cdf7c73d4c 100644 --- a/engines/mohawk/bitmap.cpp +++ b/engines/mohawk/bitmap.cpp @@ -247,7 +247,7 @@ Common::SeekableReadStream *MohawkBitmap::decompressLZ(Common::SeekableReadStrea } } - return new Common::MemoryReadStream(outputData, uncompressedSize, Common::DisposeAfterUse::YES); + return new Common::MemoryReadStream(outputData, uncompressedSize, DisposeAfterUse::YES); } void MohawkBitmap::unpackLZ() { @@ -316,7 +316,7 @@ void MohawkBitmap::unpackRiven() { } delete _data; - _data = new Common::MemoryReadStream(uncompressedData, _header.bytesPerRow * _header.height, Common::DisposeAfterUse::YES); + _data = new Common::MemoryReadStream(uncompressedData, _header.bytesPerRow * _header.height, DisposeAfterUse::YES); } static byte getLastTwoBits(byte c) { diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 88b3998af7..a24372826f 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -263,7 +263,7 @@ void MohawkEngine_LivingBooks::loadANI(uint16 resourceId) { Common::SeekableSubReadStreamEndian *MohawkEngine_LivingBooks::wrapStreamEndian(uint32 tag, uint16 id) { Common::SeekableReadStream *dataStream = getRawData(tag, id); - return new Common::SeekableSubReadStreamEndian(dataStream, 0, dataStream->size(), isBigEndian(), Common::DisposeAfterUse::YES); + return new Common::SeekableSubReadStreamEndian(dataStream, 0, dataStream->size(), isBigEndian(), DisposeAfterUse::YES); } Common::String MohawkEngine_LivingBooks::getStringFromConfig(Common::String section, Common::String key) { diff --git a/engines/mohawk/sound.cpp b/engines/mohawk/sound.cpp index b3a7f8fc21..1864cdd006 100644 --- a/engines/mohawk/sound.cpp +++ b/engines/mohawk/sound.cpp @@ -441,13 +441,13 @@ Audio::AudioStream *Sound::makeMohawkWaveStream(Common::SeekableReadStream *stre flags |= Audio::Mixer::FLAG_LOOP; return Audio::makeLinearInputStream(data_chunk.audio_data, data_chunk.size, data_chunk.sample_rate, flags, data_chunk.loopStart, data_chunk.loopEnd); } else if (data_chunk.encoding == kCodecADPCM) { - Common::MemoryReadStream *dataStream = new Common::MemoryReadStream(data_chunk.audio_data, data_chunk.size, Common::DisposeAfterUse::YES); + Common::MemoryReadStream *dataStream = new Common::MemoryReadStream(data_chunk.audio_data, data_chunk.size, DisposeAfterUse::YES); uint32 blockAlign = data_chunk.channels * data_chunk.bitsPerSample / 8; return makeLoopingAudioStream(Audio::makeADPCMStream(dataStream, true, data_chunk.size, Audio::kADPCMIma, data_chunk.sample_rate, data_chunk.channels, blockAlign), loop ? 0 : 1); } else if (data_chunk.encoding == kCodecMPEG2) { #ifdef USE_MAD - Common::MemoryReadStream *dataStream = new Common::MemoryReadStream(data_chunk.audio_data, data_chunk.size, Common::DisposeAfterUse::YES); + Common::MemoryReadStream *dataStream = new Common::MemoryReadStream(data_chunk.audio_data, data_chunk.size, DisposeAfterUse::YES); return Audio::makeLoopingAudioStream(Audio::makeMP3Stream(dataStream, true), loop ? 0 : 1); #else warning ("MAD library not included - unable to play MP2 audio"); diff --git a/engines/mohawk/video/qt_player.cpp b/engines/mohawk/video/qt_player.cpp index 2f4c54abc4..9f95e20c8e 100644 --- a/engines/mohawk/video/qt_player.cpp +++ b/engines/mohawk/video/qt_player.cpp @@ -467,7 +467,7 @@ int QTPlayer::readCMOV(MOVatom atom) { // Load data into a new MemoryReadStream and assign _fd to be that Common::SeekableReadStream *oldStream = _fd; - _fd = new Common::MemoryReadStream(uncompressedData, uncompressedSize, Common::DisposeAfterUse::YES); + _fd = new Common::MemoryReadStream(uncompressedData, uncompressedSize, DisposeAfterUse::YES); // Read the contents of the uncompressed data MOVatom a = { MKID_BE('moov'), 0, uncompressedSize }; @@ -1224,7 +1224,7 @@ void QTPlayer::updateAudioBuffer() { } // Now queue the buffer - _audStream->queueAudioStream(createAudioStream(new Common::MemoryReadStream(wStream->getData(), wStream->size(), Common::DisposeAfterUse::YES))); + _audStream->queueAudioStream(createAudioStream(new Common::MemoryReadStream(wStream->getData(), wStream->size(), DisposeAfterUse::YES))); delete wStream; } } diff --git a/engines/parallaction/disk_ns.cpp b/engines/parallaction/disk_ns.cpp index cd036e87d0..91df44e83d 100644 --- a/engines/parallaction/disk_ns.cpp +++ b/engines/parallaction/disk_ns.cpp @@ -133,7 +133,7 @@ Common::SeekableReadStream *NSArchive::createReadStreamForMember(const Common::S int offset = _archiveOffsets[index]; int endOffset = _archiveOffsets[index] + _archiveLenghts[index]; - return new Common::SeekableSubReadStream(_stream, offset, endOffset, Common::DisposeAfterUse::NO); + return new Common::SeekableSubReadStream(_stream, offset, endOffset, DisposeAfterUse::NO); } bool NSArchive::hasFile(const Common::String &name) { @@ -670,7 +670,7 @@ public: ppDecrunchBuffer(src, dest, crlen-8, decrlen); free(src); - _stream = new Common::MemoryReadStream(dest, decrlen, Common::DisposeAfterUse::YES); + _stream = new Common::MemoryReadStream(dest, decrlen, DisposeAfterUse::YES); _dispose = true; } diff --git a/engines/parallaction/font.cpp b/engines/parallaction/font.cpp index eb8869b537..d1c67f1338 100644 --- a/engines/parallaction/font.cpp +++ b/engines/parallaction/font.cpp @@ -678,7 +678,7 @@ void Parallaction_ns::initFonts() { _introFont = _disk->loadFont("slide"); } else { _dialogueFont = _disk->loadFont("comic"); - Common::MemoryReadStream stream(_amigaTopazFont, 2600, Common::DisposeAfterUse::NO); + Common::MemoryReadStream stream(_amigaTopazFont, 2600, DisposeAfterUse::NO); _labelFont = new AmigaFont(stream); _menuFont = _disk->loadFont("slide"); _introFont = _disk->loadFont("intro"); diff --git a/engines/saga/sound.cpp b/engines/saga/sound.cpp index c4bcea9c1a..80a3504e35 100644 --- a/engines/saga/sound.cpp +++ b/engines/saga/sound.cpp @@ -83,17 +83,17 @@ void Sound::playSoundBuffer(Audio::SoundHandle *handle, SoundBuffer &buffer, int switch (buffer.soundType) { #ifdef USE_MAD case kSoundMP3: - stream = Audio::makeMP3Stream(new Common::MemoryReadStream(buffer.buffer, buffer.size, Common::DisposeAfterUse::YES), true); + stream = Audio::makeMP3Stream(new Common::MemoryReadStream(buffer.buffer, buffer.size, DisposeAfterUse::YES), true); break; #endif #ifdef USE_VORBIS case kSoundOGG: - stream = Audio::makeVorbisStream(new Common::MemoryReadStream(buffer.buffer, buffer.size, Common::DisposeAfterUse::YES), true); + stream = Audio::makeVorbisStream(new Common::MemoryReadStream(buffer.buffer, buffer.size, DisposeAfterUse::YES), true); break; #endif #ifdef USE_FLAC case kSoundFLAC: - stream = Audio::makeFlacStream(new Common::MemoryReadStream(buffer.buffer, buffer.size, Common::DisposeAfterUse::YES), true); + stream = Audio::makeFlacStream(new Common::MemoryReadStream(buffer.buffer, buffer.size, DisposeAfterUse::YES), true); break; #endif default: diff --git a/engines/sci/sound/audio.cpp b/engines/sci/sound/audio.cpp index 8f6667c21e..5a4f7aeafc 100644 --- a/engines/sci/sound/audio.cpp +++ b/engines/sci/sound/audio.cpp @@ -218,10 +218,10 @@ Audio::RewindableAudioStream *AudioPlayer::getAudioStream(uint32 number, uint32 if (audioRes->headerSize > 0) { // SCI1.1 - Common::MemoryReadStream headerStream(audioRes->header, audioRes->headerSize, Common::DisposeAfterUse::NO); + Common::MemoryReadStream headerStream(audioRes->header, audioRes->headerSize, DisposeAfterUse::NO); if (readSOLHeader(&headerStream, audioRes->headerSize, size, _audioRate, audioFlags)) { - Common::MemoryReadStream dataStream(audioRes->data, audioRes->size, Common::DisposeAfterUse::NO); + Common::MemoryReadStream dataStream(audioRes->data, audioRes->size, DisposeAfterUse::NO); data = readSOLAudio(&dataStream, size, audioFlags, flags); } } else { @@ -229,7 +229,7 @@ Audio::RewindableAudioStream *AudioPlayer::getAudioStream(uint32 number, uint32 if (audioRes->size > 4) { if (memcmp(audioRes->data, "RIFF", 4) == 0) { // WAVE detected - Common::MemoryReadStream *waveStream = new Common::MemoryReadStream(audioRes->data, audioRes->size, Common::DisposeAfterUse::NO); + Common::MemoryReadStream *waveStream = new Common::MemoryReadStream(audioRes->data, audioRes->size, DisposeAfterUse::NO); audioStream = Audio::makeWAVStream(waveStream, true); } } diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp index f29bb6d283..1ba7cdbce1 100644 --- a/engines/scumm/saveload.cpp +++ b/engines/scumm/saveload.cpp @@ -223,7 +223,7 @@ void ScummEngine_v4::prepareSavegame() { if (!writeStream->err()) { // wrap uncompressing MemoryReadStream around the savegame data _savePreparedSavegame = Common::wrapCompressedReadStream( - new Common::MemoryReadStream(memStream->getData(), memStream->size(), Common::DisposeAfterUse::YES)); + new Common::MemoryReadStream(memStream->getData(), memStream->size(), DisposeAfterUse::YES)); } } // free the CompressedWriteStream and MemoryWriteStreamDynamic diff --git a/engines/sword2/music.cpp b/engines/sword2/music.cpp index be3d6f4174..67d04c870d 100644 --- a/engines/sword2/music.cpp +++ b/engines/sword2/music.cpp @@ -66,7 +66,7 @@ public: }; SafeSubReadStream::SafeSubReadStream(SeekableReadStream *parentStream, uint32 begin, uint32 end) - : SeekableSubReadStream(parentStream, begin, end, Common::DisposeAfterUse::NO) { + : SeekableSubReadStream(parentStream, begin, end, DisposeAfterUse::NO) { _previousPos = 0; } @@ -302,7 +302,7 @@ Audio::AudioStream *makePSXCLUStream(Common::File *file, int size) { byte *buffer = (byte *)malloc(size); file->read(buffer, size); - return new Audio::VagStream(new Common::MemoryReadStream(buffer, size, Common::DisposeAfterUse::YES)); + return new Audio::VagStream(new Common::MemoryReadStream(buffer, size, DisposeAfterUse::YES)); } // ---------------------------------------------------------------------------- diff --git a/engines/teenagent/pack.cpp b/engines/teenagent/pack.cpp index 3a5fae88f9..25c6c8853d 100644 --- a/engines/teenagent/pack.cpp +++ b/engines/teenagent/pack.cpp @@ -81,7 +81,7 @@ Common::SeekableReadStream *Pack::getStream(uint32 id) const { if (id < 1 || id > count) return 0; //debug(0, "stream: %04x-%04x", offsets[id - 1], offsets[id]); - return new Common::SeekableSubReadStream(&file, offsets[id - 1], offsets[id], Common::DisposeAfterUse::NO); + return new Common::SeekableSubReadStream(&file, offsets[id - 1], offsets[id], DisposeAfterUse::NO); } } // End of namespace TeenAgent diff --git a/engines/tinsel/music.cpp b/engines/tinsel/music.cpp index 6a50295afd..d38739d46a 100644 --- a/engines/tinsel/music.cpp +++ b/engines/tinsel/music.cpp @@ -874,7 +874,7 @@ bool PCMMusicPlayer::getNextChunk() { "offset %d (script %d.%d)", sampleCLength, sampleOffset, _scriptNum, _scriptIndex - 1); - sampleStream = new Common::MemoryReadStream(buffer, sampleCLength, Common::DisposeAfterUse::YES); + sampleStream = new Common::MemoryReadStream(buffer, sampleCLength, DisposeAfterUse::YES); delete _curChunk; _curChunk = makeADPCMStream(sampleStream, true, sampleCLength, diff --git a/engines/tinsel/sound.cpp b/engines/tinsel/sound.cpp index 5d7bcfad72..9921d0edfa 100644 --- a/engines/tinsel/sound.cpp +++ b/engines/tinsel/sound.cpp @@ -132,7 +132,7 @@ bool SoundManager::playSample(int id, Audio::Mixer::SoundType type, Audio::Sound _vm->_mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, _vm->_config->_voiceVolume); Common::MemoryReadStream *compressedStream = - new Common::MemoryReadStream(sampleBuf, sampleLen, Common::DisposeAfterUse::YES); + new Common::MemoryReadStream(sampleBuf, sampleLen, DisposeAfterUse::YES); Audio::AudioStream *sampleStream = 0; // play it @@ -283,7 +283,7 @@ bool SoundManager::playSample(int id, int sub, bool bLooped, int x, int y, int p error(FILE_IS_CORRUPT, _vm->getSampleFile(sampleLanguage)); Common::MemoryReadStream *compressedStream = - new Common::MemoryReadStream(sampleBuf, sampleLen, Common::DisposeAfterUse::YES); + new Common::MemoryReadStream(sampleBuf, sampleLen, DisposeAfterUse::YES); Audio::AudioStream *sampleStream = 0; switch (_soundMode) { |