Use jack_client_stop_thread on windows
[ardour.git] / libs / ardour / port_insert.cc
index b726b14aa5b3be016af35ce20a5b2985e2922537..cf33f1b9329e3b3943776de215bf82e88d7c52b1 100644 (file)
@@ -63,7 +63,7 @@ void
 PortInsert::start_latency_detection ()
 {
        delete _mtdm;
-        _mtdm = new MTDM;
+        _mtdm = new MTDM (_session.frame_rate());
         _latency_flush_frames = false;
         _latency_detect = true;
         _measured_latency = 0;
@@ -250,7 +250,9 @@ PortInsert::signal_latency() const
 bool
 PortInsert::configure_io (ChanCount in, ChanCount out)
 {
+#ifndef WIN32
        assert (!AudioEngine::instance()->process_lock().trylock());
+#endif
 
        /* for an insert, processor input corresponds to IO output, and vice versa */