diff options
author | Travis Howell | 2003-07-19 16:07:33 +0000 |
---|---|---|
committer | Travis Howell | 2003-07-19 16:07:33 +0000 |
commit | d3f303bb46664053e1f2ef0bc35bfc4c6db41533 (patch) | |
tree | 20d77208bbf9d1bd97b1413c9ea31b6050e25ade | |
parent | dca669759398c9661f4c8453d4016753210d2532 (diff) | |
download | scummvm-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.cpp | 4 |
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; } |