[Scummvm-cvs-logs] scummvm master -> 4c28682bcd4b5e2c268cfd57d8bb62fb51ebf8d3

m-kiewitz m_kiewitz at users.sourceforge.net
Mon Jun 29 13:40:13 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4c28682bcd AUDIO: Miles Audio MT32: fix embed. sysEx overflow


Commit: 4c28682bcd4b5e2c268cfd57d8bb62fb51ebf8d3
    https://github.com/scummvm/scummvm/commit/4c28682bcd4b5e2c268cfd57d8bb62fb51ebf8d3
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2015-06-29T13:40:15+02:00

Commit Message:
AUDIO: Miles Audio MT32: fix embed. sysEx overflow

now an overflow of the embedded sysEx buffer will properly
execute a send.

Changed paths:
    audio/miles_mt32.cpp



diff --git a/audio/miles_mt32.cpp b/audio/miles_mt32.cpp
index 768647c..889dad3 100644
--- a/audio/miles_mt32.cpp
+++ b/audio/miles_mt32.cpp
@@ -455,7 +455,8 @@ void MidiDriver_Miles_MT32::controlChange(byte midiChannel, byte controllerNumbe
 			if (sysExPos < MILES_CONTROLLER_SYSEX_QUEUE_SIZE) {
 				// Space left? put current byte into queue
 				_sysExQueues[sysExQueueNr].data[sysExPos] = controllerValue;
-				_sysExQueues[sysExQueueNr].dataPos++;
+				sysExPos++;
+				_sysExQueues[sysExQueueNr].dataPos = sysExPos;
 				if (sysExPos >= MILES_CONTROLLER_SYSEX_QUEUE_SIZE) {
 					// overflow? -> send it now
 					sysExSend = true;






More information about the Scummvm-git-logs mailing list