fix issues with rec-enabling being done in RT context by splitting it into two parts...
[ardour.git] / libs / ardour / ardour / diskstream.h
index 5d3693052dada42cd4c9888aa180df5f2a9eaa60..81eb588d1acb87ece0b2f49e2144936ba67942d3 100644 (file)
@@ -243,6 +243,12 @@ class Diskstream : public SessionObject, public PublicDiskstream
        virtual void use_destructive_playlist () {}
        virtual void prepare_to_stop (framepos_t pos);
 
+       void engage_record_enable ();
+       void disengage_record_enable ();
+
+        virtual bool prep_record_enable () = 0;
+        virtual bool prep_record_disable () = 0;
+
        void calculate_record_range (
                Evoral::OverlapType ot, framepos_t transport_frame, framecnt_t nframes,
                framecnt_t& rec_nframes, framecnt_t& rec_offset