, _maps_from_state (false)
, _latency_changed (false)
, _bypass_port (UINT32_MAX)
+ , _stat_reset (0)
{
/* the first is the master */
_sidechain->run (bufs, start_sample, end_sample, speed, nframes, true);
}
+ if (g_atomic_int_compare_and_exchange (&_stat_reset, 1, 0)) {
+ _timing_stats.reset ();
+ }
+
if (_pending_active) {
_timing_stats.start ();
/* run as normal if we are active or moving from inactive to active */
return _timing_stats.get_stats (min, max, avg, dev);
}
+void
+PluginInsert::clear_stats ()
+{
+ g_atomic_int_set (&_stat_reset, 1);
+}
+
std::ostream& operator<<(std::ostream& o, const ARDOUR::PluginInsert::Match& m)
{
switch (m.method) {