mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
TOLTECS: Fix bug caused by most recent revision (don't free the audio data in makeRawStream)
This commit is contained in:
parent
e8ec5148a2
commit
0d1a9148f3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user