on session-load: skip output-change-handler until IOs are restored
[ardour.git] / libs / ardour / ardour / midi_port.h
index d95296ef76aa803dd6b6a48e7fe5db29c8babc24..5dc55398cb9c7fdb1441e3202488d534ee47a5f1 100644 (file)
@@ -41,10 +41,14 @@ class MidiPort : public Port {
        void cycle_end (pframes_t nframes);
        void cycle_split ();
 
-       void flush_buffers (pframes_t nframes, framepos_t time);
+       void flush_buffers (pframes_t nframes);
        void transport_stopped ();
+       void realtime_locate ();
+       void reset ();
+        void require_resolve ();
 
-       size_t raw_buffer_size (pframes_t nframes) const;
+       bool input_active() const { return _input_active; }
+       void set_input_active (bool yn);
 
        Buffer& get_buffer (pframes_t nframes) {
                return get_midi_buffer (nframes);
@@ -59,10 +63,11 @@ class MidiPort : public Port {
 
   private:
        MidiBuffer* _buffer;
-       bool _has_been_mixed_down;
-       bool _resolve_in_process;
+       bool        _has_been_mixed_down;
+       bool        _resolve_required;
+       bool        _input_active;
 
-       MidiStateTracker _midi_state_tracker;
+       void resolve_notes (void* jack_buffer, MidiBuffer::TimeType when);
 };
 
 } // namespace ARDOUR