diff options
Diffstat (limited to 'libs/surfaces/websockets/feedback.cc')
-rw-r--r-- | libs/surfaces/websockets/feedback.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/surfaces/websockets/feedback.cc b/libs/surfaces/websockets/feedback.cc index 8441a785d2..ef3f485c2d 100644 --- a/libs/surfaces/websockets/feedback.cc +++ b/libs/surfaces/websockets/feedback.cc @@ -27,6 +27,9 @@ #include "state.h" #include "strips.h" +// TO DO: make this configurable +#define POLL_INTERVAL_MS 100 + using namespace ARDOUR; struct TransportObserver { @@ -100,7 +103,7 @@ ArdourFeedback::start () observe_strips (); // some things need polling like the strip meters - Glib::RefPtr<Glib::TimeoutSource> periodic_timeout = Glib::TimeoutSource::create (100); // ms + Glib::RefPtr<Glib::TimeoutSource> periodic_timeout = Glib::TimeoutSource::create (POLL_INTERVAL_MS); _periodic_connection = periodic_timeout->connect (sigc::mem_fun (*this, &ArdourFeedback::poll)); periodic_timeout->attach (main_loop ()->get_context ()); |