fix typo in panic message, honor event-time.
authorRobin Gareus <robin@gareus.org>
Sat, 28 Nov 2015 21:34:54 +0000 (22:34 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 28 Nov 2015 21:34:54 +0000 (22:34 +0100)
libs/ardour/midi_port.cc

index 771bfb979fb530f899f8daaa7b62407f7280d5a8..2942aded75012b34e6b2114e5468bc5f38613642 100644 (file)
@@ -180,7 +180,7 @@ MidiPort::resolve_notes (void* port_buffer, MidiBuffer::TimeType when)
 
                ev[1] = MIDI_CTL_ALL_NOTES_OFF;
 
-               if (port_engine.midi_event_put (port_buffer, 0, ev, 3) != 0) {
+               if (port_engine.midi_event_put (port_buffer, when, ev, 3) != 0) {
                        cerr << "failed to deliver ALL NOTES OFF on channel " << (int)channel << " on port " << name() << endl;
                }
        }