NO-OP: consistent [internal] API name for Automatables
authorRobin Gareus <robin@gareus.org>
Sat, 22 Jul 2017 02:45:48 +0000 (04:45 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 22 Jul 2017 02:45:48 +0000 (04:45 +0200)
libs/ardour/ardour/automatable.h
libs/ardour/ardour/delivery.h
libs/ardour/ardour/route.h
libs/ardour/automatable.cc
libs/ardour/delivery.cc
libs/ardour/route.cc
libs/ardour/session_transport.cc

index 736992d3d06d776794ced80f9da0ad3574e0ebbc..ead74d311dc24dea732f484b51090428bbab2c78 100644 (file)
@@ -84,7 +84,7 @@ public:
        void clear_controls ();
 
        virtual void non_realtime_locate (framepos_t now);
-       virtual void transport_stopped (framepos_t now);
+       virtual void non_realtime_transport_stop (framepos_t now, bool flush);
 
        virtual void automation_run (framepos_t, pframes_t);
 
index 80b8431737bdfd2046e2cf94f6d6b63ad5d418a0..708400894980982bf33229d05e7ac24839d3a9f1 100644 (file)
@@ -77,7 +77,7 @@ public:
 
        void flush_buffers (framecnt_t nframes);
        void no_outs_cuz_we_no_monitor(bool);
-       void transport_stopped (framepos_t frame);
+       void non_realtime_transport_stop (framepos_t now, bool flush);
        void realtime_locate ();
 
        BufferSet& output_buffers() { return *_output_buffers; }
index d5611c6fe9257dd5b479cae5c52ce612461c8837..f4f15ff4a9f92eeacb56beb9de98503f2ccb81f8 100644 (file)
@@ -134,7 +134,7 @@ public:
 
        virtual bool can_record() { return false; }
 
-       virtual void nonrealtime_handle_transport_stopped (bool abort, bool did_locate, bool flush_processors);
+       virtual void non_realtime_transport_stop (framepos_t now, bool flush);
        virtual void realtime_handle_transport_stopped () {}
        virtual void realtime_locate () {}
        virtual void non_realtime_locate (framepos_t);
index aa0dd5edf71313ce2abf86f06235f07d52bef038..19678ec19c4a6cd94f8b9423cc6d76e4d7fe280d 100644 (file)
@@ -356,7 +356,7 @@ Automatable::non_realtime_locate (framepos_t now)
 }
 
 void
-Automatable::transport_stopped (framepos_t now)
+Automatable::non_realtime_transport_stop (framepos_t now, bool /*flush_processors*/)
 {
        for (Controls::iterator li = controls().begin(); li != controls().end(); ++li) {
                boost::shared_ptr<AutomationControl> c =
index 9e87c89346ec85e725262c0797ce5c49fad389bb..a4cc7885d8fe467f35b2e5b94cc9fb918d4f374c 100644 (file)
@@ -498,12 +498,12 @@ Delivery::flush_buffers (framecnt_t nframes)
 }
 
 void
-Delivery::transport_stopped (framepos_t now)
+Delivery::non_realtime_transport_stop (framepos_t now, bool flush)
 {
-        Processor::transport_stopped (now);
+       Processor::non_realtime_transport_stop (now, flush);
 
        if (_panshell) {
-               _panshell->pannable()->transport_stopped (now);
+               _panshell->pannable()->non_realtime_transport_stop (now, flush);
        }
 
         if (_output) {
index 1ef3badc2c70fbc7ef544b8e33ffd7c644602f94..5fc1105f6115723915b7e5a43cb23b7796e138df 100644 (file)
@@ -3300,22 +3300,20 @@ Route::feeds_according_to_graph (boost::shared_ptr<Route> other)
 
 /** Called from the (non-realtime) butler thread when the transport is stopped */
 void
-Route::nonrealtime_handle_transport_stopped (bool /*abort_ignored*/, bool /*did_locate*/, bool can_flush_processors)
+Route::non_realtime_transport_stop (framepos_t now, bool flush)
 {
-       framepos_t now = _session.transport_frame();
-
        {
                Glib::Threads::RWLock::ReaderLock lm (_processor_lock);
 
-               Automatable::transport_stopped (now);
+               Automatable::non_realtime_transport_stop (now, flush);
 
                for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
 
-                       if (!_have_internal_generator && (Config->get_plugins_stop_with_transport() && can_flush_processors)) {
+                       if (!_have_internal_generator && (Config->get_plugins_stop_with_transport() && flush)) {
                                (*i)->flush ();
                        }
 
-                       (*i)->transport_stopped (now);
+                       (*i)->non_realtime_transport_stop (now, flush);
                }
        }
 
index af75e30b1fcd5056965214f54d6ba479a967c803..1ff7aaf0b710afa7d8425999888a819336872c8e 100644 (file)
@@ -809,11 +809,11 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished)
                PostTransportWork ptw = post_transport_work ();
 
                for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
-                       (*i)->nonrealtime_handle_transport_stopped (abort, (ptw & PostTransportLocate), (!(ptw & PostTransportLocate) || pending_locate_flush));
+                       (*i)->non_realtime_transport_stop (_transport_frame, !(ptw & PostTransportLocate) || pending_locate_flush);
                }
                VCAList v = _vca_manager->vcas ();
                for (VCAList::const_iterator i = v.begin(); i != v.end(); ++i) {
-                       (*i)->transport_stopped (_transport_frame);
+                       (*i)->non_realtime_transport_stop (_transport_frame, !(ptw & PostTransportLocate) || pending_locate_flush);
                }
 
                update_latency_compensation ();