From 21b919c210733cd5b066a0a6fce093e4ed1e7db8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 13 Sep 2016 13:34:42 -0500 Subject: provide Session::declick_out_pending() --- libs/ardour/ardour/session.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index bb2da411c8..a08464f0c5 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -169,6 +169,16 @@ private: /** Ardour Session */ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionList, public SessionEventManager { + private: + enum SubState { + PendingDeclickIn = 0x1, ///< pending de-click fade-in for start + PendingDeclickOut = 0x2, ///< pending de-click fade-out for stop + StopPendingCapture = 0x4, + PendingLoopDeclickIn = 0x8, ///< pending de-click fade-in at the start of a loop + PendingLoopDeclickOut = 0x10, ///< pending de-click fade-out at the end of a loop + PendingLocate = 0x20, + }; + public: enum RecordState { Disabled = 0, @@ -426,6 +436,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop void request_input_change_handling (); bool locate_pending() const { return static_cast(post_transport_work()&PostTransportLocate); } + bool declick_out_pending() const { return static_cast(transport_sub_state&(PendingDeclickOut)); } bool transport_locked () const; int wipe (); @@ -1151,15 +1162,6 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop static void init_name_id_counter (guint n); static unsigned int name_id_counter (); - enum SubState { - PendingDeclickIn = 0x1, ///< pending de-click fade-in for start - PendingDeclickOut = 0x2, ///< pending de-click fade-out for stop - StopPendingCapture = 0x4, - PendingLoopDeclickIn = 0x8, ///< pending de-click fade-in at the start of a loop - PendingLoopDeclickOut = 0x10, ///< pending de-click fade-out at the end of a loop - PendingLocate = 0x20, - }; - /* stuff used in process() should be close together to maximise cache hits */ -- cgit v1.2.3