NOOP, remove trailing tabs/whitespace.
[ardour.git] / libs / ardour / port_insert.cc
index d64920b1e2ddcb7f8cacb322f89213d2e43e227e..46d54cd445aece3647e7c6fee65586575bf4dd1d 100644 (file)
@@ -49,7 +49,7 @@ PortInsert::PortInsert (Session& s, boost::shared_ptr<Pannable> pannable, boost:
 {
         _mtdm = 0;
         _latency_detect = false;
-        _latency_flush_frames = false;
+        _latency_flush_frames = 0;
         _measured_latency = 0;
 }
 
@@ -59,12 +59,19 @@ PortInsert::~PortInsert ()
         delete _mtdm;
 }
 
+void
+PortInsert::set_pre_fader (bool p)
+{
+       Processor::set_pre_fader (p);
+       _out->set_pre_fader (p);
+}
+
 void
 PortInsert::start_latency_detection ()
 {
        delete _mtdm;
         _mtdm = new MTDM (_session.frame_rate());
-        _latency_flush_frames = false;
+        _latency_flush_frames = 0;
         _latency_detect = true;
         _measured_latency = 0;
 }
@@ -115,8 +122,7 @@ PortInsert::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame,
                         Sample* out = outbuf.data();
 
                         _mtdm->process (nframes, in, out);
-                       
-                        outbuf.set_is_silent (false);
+
                         outbuf.set_written (true);
                 }
 
@@ -250,7 +256,9 @@ PortInsert::signal_latency() const
 bool
 PortInsert::configure_io (ChanCount in, ChanCount out)
 {
+#ifndef PLATFORM_WINDOWS
        assert (!AudioEngine::instance()->process_lock().trylock());
+#endif
 
        /* for an insert, processor input corresponds to IO output, and vice versa */