remove unused Route::_silent
authorRobin Gareus <robin@gareus.org>
Sat, 30 Sep 2017 16:46:24 +0000 (18:46 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 30 Sep 2017 16:46:24 +0000 (18:46 +0200)
libs/ardour/ardour/route.h
libs/ardour/auditioner.cc
libs/ardour/route.cc

index 53766350763c90a13cfd6cd80d630200c95d049b..83de9c675389b7272dd998e11de97d1f38d09ff2 100644 (file)
@@ -659,7 +659,6 @@ protected:
        bool           _denormal_protection;
 
        bool _recordable : 1;
-       bool _silent : 1;
        bool _declickable : 1;
 
        boost::shared_ptr<SoloControl> _solo_control;
index 3c9b784ae12e8d4fc50ae678d39be284eff1ae8f..a202fd85548f684f4a9e4f338af821064d865d82 100644 (file)
@@ -231,8 +231,6 @@ Auditioner::roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_s
 
        BufferSet& bufs = _session.get_route_buffers (n_process_buffers());
 
-       _silent = false;
-
        if (_queue_panic) {
                MidiBuffer& mbuf (bufs.get_midi (0));
                _queue_panic = false;
index 28b88c96894fc919e73d198d6bdaa122071b6c2c..18d5e945e549130fdfce12e140b57644982c14fa 100644 (file)
@@ -104,7 +104,6 @@ Route::Route (Session& sess, string name, PresentationInfo::Flag flag, DataType
        , _meter_type (MeterPeak)
        , _denormal_protection (false)
        , _recordable (true)
-       , _silent (false)
        , _declickable (false)
        , _have_internal_generator (false)
        , _default_type (default_type)
@@ -687,7 +686,6 @@ Route::monitor_run (samplepos_t start_sample, samplepos_t end_sample, pframes_t
 void
 Route::passthru (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, pframes_t nframes, int declick, bool gain_automation_ok, bool run_disk_reader)
 {
-       _silent = false;
 
        if (is_monitor() && _session.listening() && !_session.is_auditioning()) {
 
@@ -3106,29 +3104,22 @@ Route::silence_unlocked (samplecnt_t nframes)
 
        const samplepos_t now = _session.transport_sample ();
 
-       if (!_silent) {
+       _output->silence (nframes);
 
-               _output->silence (nframes);
+       // update owned automated controllables
+       automation_run (now, nframes);
 
-               // update owned automated controllables
-               automation_run (now, nframes);
-
-               for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
-                       boost::shared_ptr<PluginInsert> pi;
-
-                       if (!_active && (pi = boost::dynamic_pointer_cast<PluginInsert> (*i)) != 0) {
-                               /* evaluate automated automation controls */
-                               pi->automation_run (now, nframes);
-                               /* skip plugins, they don't need anything when we're not active */
-                               continue;
-                       }
+       for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
+               boost::shared_ptr<PluginInsert> pi;
 
-                       (*i)->silence (nframes, now);
+               if (!_active && (pi = boost::dynamic_pointer_cast<PluginInsert> (*i)) != 0) {
+                       /* evaluate automated automation controls */
+                       pi->automation_run (now, nframes);
+                       /* skip plugins, they don't need anything when we're not active */
+                       continue;
                }
 
-               if (nframes == _session.get_block_size()) {
-                       // _silent = true;
-               }
+               (*i)->silence (nframes, now);
        }
 }
 
@@ -3747,8 +3738,6 @@ Route::roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample
                return 0;
        }
 
-       _silent = false;
-
        BufferSet& bufs = _session.get_route_buffers (n_process_buffers ());
 
        fill_buffers_with_input (bufs, _input, nframes);