From 3f5cee742f1129f07213462c40ef5614fb78958c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 29 Oct 2014 23:19:54 -0400 Subject: [PATCH] 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 --- libs/backends/wavesaudio/waves_midi_event.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/backends/wavesaudio/waves_midi_event.cc b/libs/backends/wavesaudio/waves_midi_event.cc index c48c647406..0afe168c92 100644 --- a/libs/backends/wavesaudio/waves_midi_event.cc +++ b/libs/backends/wavesaudio/waves_midi_event.cc @@ -121,6 +121,7 @@ WavesMidiEvent *WavesMidiEvent::append_data (const PmEvent &midi_event) * (PmMessage*)_data = 0; switch (message_size) { case 1: + case 2: case 3: _size = message_size; DEBUG_TRACE (DEBUG::WavesMIDI, string_compose ( "WavesMidiEvent::append_data (): size = %1\n", _size));