Convert some error output to debug output in PortaudioBackend
[ardour.git] / libs / surfaces / control_protocol / basic_ui.cc
index 98e7adf949b7082812062c4f82d4553379603111..bf6bb25f2cac17fd7900078299c0e8bef08dde75 100644 (file)
@@ -79,6 +79,20 @@ BasicUI::loop_toggle ()
        }
 }
 
+void
+BasicUI::loop_location (framepos_t start, framepos_t end)
+{
+       Location* tll;
+       if ((tll = session->locations()->auto_loop_location()) == 0) {
+               Location* loc = new Location (*session, start, end, _("Loop"),  Location::IsAutoLoop);
+               session->locations()->add (loc, true);
+               session->set_auto_loop_location (loc);
+       } else {
+               tll->set_hidden (false, this);
+               tll->set (start, end);
+       }
+}
+
 void
 BasicUI::goto_start ()
 {