extensive changes to PresentationInfo API
[ardour.git] / 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;
                }
        }