aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/imuse_digi.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/imuse_digi.cpp b/scumm/imuse_digi.cpp
index 29848aeab0..433a396f4b 100644
--- a/scumm/imuse_digi.cpp
+++ b/scumm/imuse_digi.cpp
@@ -794,6 +794,8 @@ void IMuseDigital::mixerCallback() {
_channel[l].toBeRemoved = true;
}
+ mixer_size &= ~1; // Size *must* be even, after all this is stereo data
+
byte *buf = (byte *)malloc(mixer_size);
memcpy(buf, _channel[l].data + _channel[l].offset, mixer_size);
_channel[l].offset += mixer_size;