aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
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/agos
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/agos')
-rw-r--r--engines/agos/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp
index e198fe8d66..2da81d2d28 100644
--- a/engines/agos/sound.cpp
+++ b/engines/agos/sound.cpp
@@ -741,7 +741,7 @@ void Sound::playSoundData(Audio::SoundHandle *handle, byte *soundData, uint soun
flags |= Audio::Mixer::FLAG_LOOP;
if (compType == 2) {
- Audio::AudioStream *sndStream = Audio::makeADPCMStream(&stream, size, Audio::kADPCMMS, rate, (flags & Audio::Mixer::FLAG_STEREO) ? 2 : 1, blockAlign);
+ Audio::AudioStream *sndStream = Audio::makeADPCMStream(&stream, false, size, Audio::kADPCMMS, rate, (flags & Audio::Mixer::FLAG_STEREO) ? 2 : 1, blockAlign);
buffer = (byte *)malloc(size * 4);
size = sndStream->readBuffer((int16*)buffer, size * 2);
size *= 2; // 16bits.