coremidi: do not clear port buffer for every call to parse_events()
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 10 Jan 2016 22:46:19 +0000 (17:46 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 10 Jan 2016 22:46:36 +0000 (17:46 -0500)
This was limiting the data flow to 1 MIDI event per process cycle.

libs/backends/coreaudio/coreaudio_backend.cc

index c0053a99400126ad3070dd4e6c9d117e0bb7e9c3..ce4231ca2b3ab7300453d11a06fe8fd8451e8921 100644 (file)
@@ -2140,8 +2140,6 @@ CoreMidiPort::parse_events (const uint64_t time, const uint8_t *data, const size
 {
        CoreMidiBuffer* mbuf = static_cast<CoreMidiBuffer*>(get_buffer(0));
 
-       mbuf->clear();
-
        if (_event._pending) {
                if (queue_event (mbuf, _event._time, _parser_buffer, _event._size)) {
                        return;