WebSockets: add some TO DO comments

This commit is contained in:
Luciano Iam 2020-04-22 11:26:51 +02:00 committed by Robin Gareus
parent 8b65b0a961
commit c362605b49
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 8 additions and 1 deletions

View file

@ -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 ());