aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/sound_he.cpp
diff options
context:
space:
mode:
authorMax Horn2007-11-16 10:05:18 +0000
committerMax Horn2007-11-16 10:05:18 +0000
commitc8ce5b1865c3854eca79843e12493453c7566d0b (patch)
tree4b2da4ab38219679ab0cddafe68f686b46fd5a67 /engines/scumm/he/sound_he.cpp
parentca2641b70f96f879352ab49b5d4f90909d4f75de (diff)
downloadscummvm-rg350-c8ce5b1865c3854eca79843e12493453c7566d0b.tar.gz
scummvm-rg350-c8ce5b1865c3854eca79843e12493453c7566d0b.tar.bz2
scummvm-rg350-c8ce5b1865c3854eca79843e12493453c7566d0b.zip
Changed Audio::makeADPCMStream so that the stream passed to it can automatically be disposed
svn-id: r29517
Diffstat (limited to 'engines/scumm/he/sound_he.cpp')
-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 b074f644e0..da830515e2 100644
--- a/engines/scumm/he/sound_he.cpp
+++ b/engines/scumm/he/sound_he.cpp
@@ -569,7 +569,7 @@ void SoundHE::playHESound(int soundID, int heOffset, int heChannel, int heFlags)
}
if (compType == 17) {
- Audio::AudioStream *voxStream = Audio::makeADPCMStream(&stream, size, Audio::kADPCMMSIma, rate, (flags & Audio::Mixer::FLAG_STEREO) ? 2 : 1, blockAlign);
+ Audio::AudioStream *voxStream = Audio::makeADPCMStream(&stream, false, size, Audio::kADPCMMSIma, rate, (flags & Audio::Mixer::FLAG_STEREO) ? 2 : 1, blockAlign);
sound = (char *)malloc(size * 4);
size = voxStream->readBuffer((int16*)sound, size * 2);