fix bug that prevents 2 byte MIDI messages (e.g. program change) from being considered as legal.

I suspect that this parsing code is still deeply suspect, but I do not have the time to fully investigate
the problems it may have. This commit fixes a very basic bug, and allows program change messages to
be passed through to higher levels in the software
This commit is contained in:
Paul Davis 2014-10-29 23:19:54 -04:00
parent 3b12ea8a9f
commit 3f5cee742f

View file

@ -121,6 +121,7 @@ WavesMidiEvent *WavesMidiEvent::append_data (const PmEvent &midi_event)
* (PmMessage*)_data = 0; * (PmMessage*)_data = 0;
switch (message_size) { switch (message_size) {
case 1: case 1:
case 2:
case 3: case 3:
_size = message_size; _size = message_size;
DEBUG_TRACE (DEBUG::WavesMIDI, string_compose ( "WavesMidiEvent::append_data (): size = %1\n", _size)); DEBUG_TRACE (DEBUG::WavesMIDI, string_compose ( "WavesMidiEvent::append_data (): size = %1\n", _size));