remove entire "stub" file concept; open new audio and MIDI files on demand (at first...
[ardour.git] / libs / ardour / ardour / midi_source.h
index f13b71e0f18b7548130601b11eb9830e7e184a8c..a1738a2aa94458f3e33a8dd2251fe2cf3d0c16e0 100644 (file)
@@ -78,9 +78,10 @@ class MidiSource : virtual public Source, public boost::enable_shared_from_this<
        virtual framecnt_t length (framepos_t pos) const;
        virtual void       update_length (framepos_t pos, framecnt_t cnt);
 
-       virtual void mark_streaming_midi_write_started (NoteMode mode, framepos_t start_time);
+       virtual void mark_streaming_midi_write_started (NoteMode mode);
        virtual void mark_streaming_write_started ();
        virtual void mark_streaming_write_completed ();
+       void mark_write_starting_now ();
 
        virtual void session_saved();
 
@@ -96,6 +97,8 @@ class MidiSource : virtual public Source, public boost::enable_shared_from_this<
        int set_state (const XMLNode&, int version);
 
        bool length_mutable() const { return true; }
+
+       void set_length_beats(double l) { _length_beats = l; }
        double length_beats() const { return _length_beats; }
 
        virtual void load_model(bool lock=true, bool force_reload=false) = 0;