From efd10abdfb54bb1dd56de0aa01278805f5fbf332 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 18 Jan 2017 15:15:48 +0100 Subject: Implement record with preroll --- libs/ardour/ardour/session.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/ardour/ardour/session.h') diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index f9172c5d6c..49ee8cbb7d 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -998,6 +998,10 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop void maybe_update_session_range (framepos_t, framepos_t); + void request_preroll_record (framepos_t); + framepos_t preroll_record_in () const { return _preroll_record_in; } + bool preroll_record_enabled () const { return _preroll_record_in >= 0; } + /* temporary hacks to allow selection to be pushed from GUI into backend. Whenever we move the selection object into libardour, these will go away. */ @@ -1915,6 +1919,9 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop Evoral::Range _range_selection; Evoral::Range _object_selection; + void unset_preroll_record (); + framepos_t _preroll_record_in; + /* main outs */ uint32_t main_outs; -- cgit v1.2.3