diff options
author | Len Ovens <len@ovenwerks.net> | 2017-10-17 14:56:44 -0700 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2017-10-17 14:57:47 -0700 |
commit | 4c1feac16e19ff3368c70ee1234bc8d6e6ad6901 (patch) | |
tree | f6eda166e104cea86d18c7a69b174e5c4108085c /libs/surfaces/osc/osc_select_observer.h | |
parent | 7422ffe6920deba396debb670c713849a64be43b (diff) |
OSC: Move observers to surface based for less traffic.
Diffstat (limited to 'libs/surfaces/osc/osc_select_observer.h')
-rw-r--r-- | libs/surfaces/osc/osc_select_observer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/surfaces/osc/osc_select_observer.h b/libs/surfaces/osc/osc_select_observer.h index 393a19dc70..218dce3735 100644 --- a/libs/surfaces/osc/osc_select_observer.h +++ b/libs/surfaces/osc/osc_select_observer.h @@ -37,7 +37,7 @@ class OSCSelectObserver { public: - OSCSelectObserver (boost::shared_ptr<ARDOUR::Stripable>, lo_address addr, ArdourSurface::OSC::OSCSurface* sur); + OSCSelectObserver (ArdourSurface::OSC& o, ArdourSurface::OSC::OSCSurface* sur); ~OSCSelectObserver (); boost::shared_ptr<ARDOUR::Stripable> strip () const { return _strip; } @@ -46,10 +46,14 @@ class OSCSelectObserver void renew_sends (void); void renew_plugin (void); void eq_restart (int); + void clear_observer (void); + void refresh_strip (bool force); + void no_strip (); private: boost::shared_ptr<ARDOUR::Stripable> _strip; - + ArdourSurface::OSC& _osc; + PBD::ScopedConnectionList strip_connections; // sends, plugins and eq need their own PBD::ScopedConnectionList send_connections; @@ -81,8 +85,6 @@ class OSCSelectObserver void comp_mode (void); void change_message_with_id (std::string path, uint32_t id, boost::shared_ptr<PBD::Controllable> controllable); void enable_message_with_id (std::string path, uint32_t id, boost::shared_ptr<PBD::Controllable> controllable); - void text_message (std::string path, std::string text); - void text_with_id (std::string path, uint32_t id, std::string name); void monitor_status (boost::shared_ptr<PBD::Controllable> controllable); void gain_message (); void gain_automation (); @@ -98,8 +100,6 @@ class OSCSelectObserver void eq_init (void); void eq_end (void); std::string set_path (std::string path, uint32_t id); - void send_float (std::string path, float val); - void send_float_with_id (std::string path, uint32_t id, float val); }; #endif /* __osc_oscselectobserver_h__ */ |