diff options
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/audioengine.h | 16 | ||||
-rw-r--r-- | libs/ardour/ardour/session.h | 1 |
2 files changed, 16 insertions, 1 deletions
diff --git a/libs/ardour/ardour/audioengine.h b/libs/ardour/ardour/audioengine.h index 83df9a8760..445d299f39 100644 --- a/libs/ardour/ardour/audioengine.h +++ b/libs/ardour/ardour/audioengine.h @@ -232,6 +232,16 @@ class LIBARDOUR_API AudioEngine : public SessionHandlePtr, public PortManager LatencyMeasurement measuring_latency () const { return _measuring_latency; } + /* These two are used only in builds where SILENCE_AFTER_SECONDS was + * set. BecameSilent will be emitted when the audioengine goes silent. + * reset_silence_countdown() can be used to reset the silence + * countdown, whose duration will be reduced to half of its previous + * value. + */ + + PBD::Signal0<void> BecameSilent; + void reset_silence_countdown (); + private: AudioEngine (); @@ -293,6 +303,12 @@ class LIBARDOUR_API AudioEngine : public SessionHandlePtr, public PortManager BackendMap _backends; AudioBackendInfo* backend_discover (const std::string&); void drop_backend (); + +#ifdef SILENCE_AFTER + framecnt_t _silence_countdown; + uint32_t _silence_hit_cnt; +#endif + }; } // namespace ARDOUR diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 6329b29ad2..942b75fbef 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -559,7 +559,6 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop bool transport_stopped() const { return _transport_speed == 0.0f; } bool transport_rolling() const { return _transport_speed != 0.0f; } - void set_silent (bool yn); bool silent () { return _silent; } TempoMap& tempo_map() { return *_tempo_map; } |