diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-13 13:34:42 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-13 14:11:29 -0500 |
commit | 21b919c210733cd5b066a0a6fce093e4ed1e7db8 (patch) | |
tree | d51ce1d6a4e9fbc21f1d88f49312a4eb5abb2db4 /libs/ardour/ardour/session.h | |
parent | 368a091acdcf0476ed9b3f3b79aab1d77794104e (diff) |
provide Session::declick_out_pending()
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r-- | libs/ardour/ardour/session.h | 20 |
1 files changed, 11 insertions, 9 deletions
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<bool>(post_transport_work()&PostTransportLocate); } + bool declick_out_pending() const { return static_cast<bool>(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 */ |