diff options
author | Max Horn | 2007-11-16 10:05:18 +0000 |
---|---|---|
committer | Max Horn | 2007-11-16 10:05:18 +0000 |
commit | c8ce5b1865c3854eca79843e12493453c7566d0b (patch) | |
tree | 4b2da4ab38219679ab0cddafe68f686b46fd5a67 /engines/agos | |
parent | ca2641b70f96f879352ab49b5d4f90909d4f75de (diff) | |
download | scummvm-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.cpp | 2 |
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. |