summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/transport_master.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-09-16 13:46:06 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-09-17 16:54:10 -0600
commit37d9ec34c86bb18f95e35987b8b62bd4d275787c (patch)
treee64be0ba9299f2e8546870c73b8514d647674612 /libs/ardour/ardour/transport_master.h
parentfb4cbb9f9ee61a5c0fec9fa43eff5a0e59d7f9ed (diff)
add ::usable() method to TransportMaster objects to allow GUI to show their usability after backend/engine changes
Diffstat (limited to 'libs/ardour/ardour/transport_master.h')
-rw-r--r--libs/ardour/ardour/transport_master.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/ardour/transport_master.h b/libs/ardour/ardour/transport_master.h
index ee986f7a9e..3dcfe4cd8f 100644
--- a/libs/ardour/ardour/transport_master.h
+++ b/libs/ardour/ardour/transport_master.h
@@ -232,6 +232,16 @@ class LIBARDOUR_API TransportMaster : public PBD::Stateful {
virtual bool ok() const = 0;
/**
+ * reports to ARDOUR whether it is possible to use this slave
+ *
+ * @return - true if the slave can be used.
+ *
+ * Only the JACK ("Engine") slave is ever likely to return false,
+ * if JACK is not being used for the Audio/MIDI backend.
+ */
+ virtual bool usable() const { return true; }
+
+ /**
* reports to ARDOUR whether the slave is in the process of starting
* to roll
*
@@ -626,6 +636,7 @@ class LIBARDOUR_API Engine_TransportMaster : public TransportMaster
void reset (bool with_position);
bool locked() const;
bool ok() const;
+ bool usable() const;
samplecnt_t update_interval () const;
samplecnt_t resolution () const { return 1; }
bool requires_seekahead () const { return false; }