aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-07-19 16:07:33 +0000
committerTravis Howell2003-07-19 16:07:33 +0000
commitd3f303bb46664053e1f2ef0bc35bfc4c6db41533 (patch)
tree20d77208bbf9d1bd97b1413c9ea31b6050e25ade
parentdca669759398c9661f4c8453d4016753210d2532 (diff)
downloadscummvm-rg350-d3f303bb46664053e1f2ef0bc35bfc4c6db41533.tar.gz
scummvm-rg350-d3f303bb46664053e1f2ef0bc35bfc4c6db41533.tar.bz2
scummvm-rg350-d3f303bb46664053e1f2ef0bc35bfc4c6db41533.zip
Small update to Amogs sfx support for indy3/loom, patch #771355
svn-id: r9081
-rw-r--r--scumm/sound.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 8e8f3dedc2..da80d67876 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -509,7 +509,9 @@ void Sound::playSound(int soundID) {
return;
size = READ_BE_UINT16(ptr + 12);
rate = 11000;
- _scumm->_mixer->playRaw(NULL, ptr + 28, size, rate, flags, soundID);
+ sound = (char *)malloc(size);
+ memcpy(sound,ptr + 28,size);
+ _scumm->_mixer->playRaw(NULL, sound, size, rate, SoundMixer::FLAG_AUTOFREE, soundID);
return;
}