aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2010-01-27 12:20:01 +0000
committerTravis Howell2010-01-27 12:20:01 +0000
commit0b4b3da4e4bf516e46d7bc43d2cf60569559993a (patch)
tree080e2ad83d76d81c1590bc980000eea2dbb06778
parentb24be4f52620d01fd2928d8afddd9fe884b392ed (diff)
downloadscummvm-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.cpp2
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);