aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index dbbb0f11c9..5126db41d8 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -318,7 +318,7 @@ void Sound::playSound(int soundID, int heOffset, int heChannel, int heFlags) {
if (type == 17) {
AudioStream *voxStream = new ADPCMInputStream(&stream, size, kADPCMIma, (flags & Audio::Mixer::FLAG_STEREO) ? 2 : 1);
- sound = (char *)malloc(size * 2);
+ sound = (char *)malloc(size * 4);
size = voxStream->readBuffer((int16*)sound, size * 2);
} else {
// Allocate a sound buffer, copy the data into it, and play