From 719c3f1457501c1b808c9c6edf977e2b7d07e744 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 29 Dec 2019 18:41:02 -0700 Subject: add Session::transport_stopped_or_stopping() Session::TransportStateChanged notifies about transport stop before the stop is complete (i.e. at the start of the declick). Various other objects (notably control surfaces) connect to this signal and use it to modify their displayed state. We need a method that can tell them we are stopped (or stopping) even though we are not "fully" stopped yet. This is that method --- libs/ardour/session_transport.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/ardour/session_transport.cc') diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index b6c5d64503..79ffb927bf 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -2000,6 +2000,12 @@ Session::transport_stopped() const return _transport_fsm->stopped(); } +bool +Session::transport_stopped_or_stopping() const +{ + return _transport_fsm->stopped() || _transport_fsm->stopping(); +} + bool Session::transport_rolling() const { -- cgit v1.2.3