diff options
author | Len Ovens <len@ovenwerks.net> | 2017-10-19 08:46:55 -0700 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2017-10-19 08:48:25 -0700 |
commit | 618020424e7be8e73d7003124dee6f5b3e61221a (patch) | |
tree | 71c6390021ac81ecf9b6c337eff3ad68eb04fb74 /libs/surfaces/osc/osc_cue_observer.h | |
parent | dabe7474b3b031cada7309eea80997fc8507c30d (diff) |
OSC: Cue observer simplified.
Diffstat (limited to 'libs/surfaces/osc/osc_cue_observer.h')
-rw-r--r-- | libs/surfaces/osc/osc_cue_observer.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libs/surfaces/osc/osc_cue_observer.h b/libs/surfaces/osc/osc_cue_observer.h index eb669ee167..92a46e0111 100644 --- a/libs/surfaces/osc/osc_cue_observer.h +++ b/libs/surfaces/osc/osc_cue_observer.h @@ -33,7 +33,7 @@ class OSCCueObserver { public: - OSCCueObserver (boost::shared_ptr<ARDOUR::Stripable>, std::vector<boost::shared_ptr<ARDOUR::Stripable> >& sends, lo_address addr); + OSCCueObserver (ArdourSurface::OSC& o, ArdourSurface::OSC::OSCSurface* sur); ~OSCCueObserver (); boost::shared_ptr<ARDOUR::Stripable> strip () const { return _strip; } @@ -41,16 +41,20 @@ class OSCCueObserver void tick (void); typedef std::vector<boost::shared_ptr<ARDOUR::Stripable> > Sorted; Sorted sends; + void clear_observer (void); + void refresh_strip (bool force); private: boost::shared_ptr<ARDOUR::Stripable> _strip; + ArdourSurface::OSC& _osc; PBD::ScopedConnectionList strip_connections; PBD::ScopedConnectionList send_connections; lo_address addr; std::string path; + ArdourSurface::OSC::OSCSurface* sur; float _last_meter; std::vector<uint32_t> gain_timeout; bool tick_enable; @@ -58,13 +62,12 @@ class OSCCueObserver void name_changed (const PBD::PropertyChange& what_changed, uint32_t id); void send_change_message (std::string path, uint32_t id, boost::shared_ptr<PBD::Controllable> controllable); - void text_with_id (std::string path, uint32_t id, std::string val); - void send_gain_message (uint32_t id, boost::shared_ptr<PBD::Controllable> controllable); + void send_gain_message (uint32_t id, boost::shared_ptr<PBD::Controllable> controllable, bool force); void send_enabled_message (std::string path, uint32_t id, boost::shared_ptr<ARDOUR::Processor> proc); - void clear_strip (std::string path, float val); void send_init (void); void send_end (void); void send_restart (void); + void no_strip (); }; #endif /* __osc_osccueobserver_h__ */ |