TOLTECS: Fix bug caused by most recent revision (don't free the audio data in makeRawStream)

This commit is contained in:
Benjamin Haisch 2010-02-21 18:15:16 +00:00 committed by Willem Jan Palenstijn
parent e8ec5148a2
commit 0d1a9148f3

View File

@ -149,7 +149,7 @@ void Sound::internalPlaySound(int16 resIndex, int16 type, int16 volume, int16 pa
Resource *soundResource = _vm->_res->load(resIndex);
Audio::AudioStream *stream = Audio::makeLoopingAudioStream(
Audio::makeRawStream(soundResource->data, soundResource->size, 22050, Audio::FLAG_UNSIGNED, DisposeAfterUse::YES/*CHECKME*/),
Audio::makeRawStream(soundResource->data, soundResource->size, 22050, Audio::FLAG_UNSIGNED, DisposeAfterUse::NO),
type == kChannelTypeBackground ? 0 : 1);
channels[freeChannel].type = type;