diff options
author | Travis Howell | 2010-01-27 12:20:01 +0000 |
---|---|---|
committer | Travis Howell | 2010-01-27 12:20:01 +0000 |
commit | 0b4b3da4e4bf516e46d7bc43d2cf60569559993a (patch) | |
tree | 080e2ad83d76d81c1590bc980000eea2dbb06778 | |
parent | b24be4f52620d01fd2928d8afddd9fe884b392ed (diff) | |
download | scummvm-rg350-0b4b3da4e4bf516e46d7bc43d2cf60569559993a.tar.gz scummvm-rg350-0b4b3da4e4bf516e46d7bc43d2cf60569559993a.tar.bz2 scummvm-rg350-0b4b3da4e4bf516e46d7bc43d2cf60569559993a.zip |
Fix sound regression in HE games.
svn-id: r47596
-rw-r--r-- | engines/scumm/he/sound_he.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/he/sound_he.cpp b/engines/scumm/he/sound_he.cpp index 54a2440697..cdd7e5a49b 100644 --- a/engines/scumm/he/sound_he.cpp +++ b/engines/scumm/he/sound_he.cpp @@ -669,7 +669,7 @@ void SoundHE::playHESound(int soundID, int heOffset, int heChannel, int heFlags) #endif stream = Audio::makeRawMemoryStream(sound + heOffset, size - heOffset, rate, flags); } else { - stream = Audio::makeRawMemoryStream(ptr + memStream.pos() + heOffset, size - heOffset, rate, flags); + stream = Audio::makeRawMemoryStream(ptr + memStream.pos() + heOffset, size - heOffset, rate, flags, DisposeAfterUse::NO); } _mixer->playInputStream(type, &_heSoundChannels[heChannel], Audio::makeLoopingAudioStream(stream, (heFlags & 1) ? 0 : 1), soundID); |