aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}