fix bug that prevents 2 byte MIDI messages (e.g. program change) from being considere...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 30 Oct 2014 03:19:54 +0000 (23:19 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 30 Oct 2014 03:19:54 +0000 (23:19 -0400)
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

index c48c64740673218d63fb2dce7140a58194a3e5b1..0afe168c92d09f8057b0e115fc5c820f69b6edf4 100644 (file)
@@ -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));