aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-12-24 17:03:42 +0000
committerMax Horn2003-12-24 17:03:42 +0000
commit43b8312c80595dc8c4444c425fda972aeadd91d8 (patch)
treec58235225b18d44bde73bbc59e38c9637817f69f
parent289877a5f0b6e9a95e82a00525d2abeaf0f5ecdb (diff)
downloadscummvm-rg350-43b8312c80595dc8c4444c425fda972aeadd91d8.tar.gz
scummvm-rg350-43b8312c80595dc8c4444c425fda972aeadd91d8.tar.bz2
scummvm-rg350-43b8312c80595dc8c4444c425fda972aeadd91d8.zip
muse use even size when pushing data into a mixerstream
svn-id: r11890
-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;