Use XMLNode::get/set_property API in ARDOUR::MidiModel class
[ardour.git] / libs / ardour / session_click.cc
index 08aa0cc446605a572f9a3ffb7788a8eb7b0098af..fc1f9c5e1d98e40a4bc8c086f51ba8116607ffbd 100644 (file)
@@ -75,6 +75,10 @@ Session::click (framepos_t start, framecnt_t nframes)
                return;
        }
 
+       if (_click_rec_only && !actively_recording()) {
+               return;
+       }
+
        start -= _worst_track_latency;
        /* start could be negative at this point */
        const framepos_t end = start + nframes;