Fix crash introduced in r11877 (oops). Add LV2Plugin::port_index().
[ardour.git] / libs / ardour / ardour / midi_track.h
index 0df9f538f3011df594819a63cdf3c5f1cc919db5..45055a0c3d02543630f117593da8cda56b85a7b4 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef __ardour_midi_track_h__
 #define __ardour_midi_track_h__
 
+#include "ardour/interthread_info.h"
 #include "ardour/track.h"
 #include "ardour/midi_ring_buffer.h"
 #include "ardour/midi_state_tracker.h"
@@ -46,7 +47,7 @@ public:
        void realtime_handle_transport_stopped ();
        void realtime_locate ();
 
-       void use_new_diskstream ();
+       boost::shared_ptr<Diskstream> create_diskstream ();
        void set_diskstream (boost::shared_ptr<Diskstream>);
        void set_record_enabled (bool yn, void *src);
 
@@ -54,15 +55,15 @@ public:
                return DataType::MIDI;
        }
 
-       int export_stuff (BufferSet& bufs, framecnt_t nframes, framepos_t end_frame);
-
        void freeze_me (InterThreadInfo&);
        void unfreeze ();
 
+       bool bounceable (boost::shared_ptr<Processor>, bool) const { return false; }
        boost::shared_ptr<Region> bounce (InterThreadInfo&);
-       boost::shared_ptr<Region> bounce_range (
-                       framepos_t start, framepos_t end, InterThreadInfo&, bool enable_processing
-               );
+       boost::shared_ptr<Region> bounce_range (framepos_t start, framepos_t end, InterThreadInfo&, 
+                                               boost::shared_ptr<Processor> endpoint, bool include_endpoint);
+       int export_stuff (BufferSet& bufs, framecnt_t nframes, framepos_t end_frame, 
+                         boost::shared_ptr<Processor> endpoint, bool include_endpoint, bool for_export);
 
        int set_state (const XMLNode&, int version);
 
@@ -100,13 +101,12 @@ public:
        uint16_t get_channel_mask ();
        boost::shared_ptr<MidiPlaylist> midi_playlist ();
 
-       bool bounceable () const {
-               return false;
-       }
-
        PBD::Signal1<void, boost::weak_ptr<MidiSource> > DataRecorded;
        boost::shared_ptr<MidiBuffer> get_gui_feed_buffer () const;
 
+       void set_monitoring (MonitorChoice);
+       MonitorState monitoring_state () const;
+
        void set_input_active (bool);
        bool input_active () const;
        PBD::Signal0<void> InputActiveChanged;
@@ -114,8 +114,7 @@ public:
 protected:
        XMLNode& state (bool full);
 
-       bool should_monitor () const;
-       bool send_silence () const;
+       void act_on_mute ();
 
   private: