mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-26 15:08:17 +01:00
OSC: simplify route observer
This commit is contained in:
parent
b29b46d371
commit
07e869fda8
3 changed files with 4 additions and 4 deletions
|
|
@ -717,7 +717,7 @@ OSC::listen_to_route (boost::shared_ptr<Stripable> strip, lo_address addr)
|
|||
|
||||
OSCSurface *s = get_surface(addr);
|
||||
uint32_t ssid = get_sid (strip, addr);
|
||||
OSCRouteObserver* o = new OSCRouteObserver (strip, addr, ssid, s);
|
||||
OSCRouteObserver* o = new OSCRouteObserver (strip, ssid, s);
|
||||
route_observers.push_back (o);
|
||||
|
||||
strip->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::route_lost, this, boost::weak_ptr<Stripable> (strip)), this);
|
||||
|
|
|
|||
|
|
@ -38,13 +38,13 @@ using namespace PBD;
|
|||
using namespace ARDOUR;
|
||||
using namespace ArdourSurface;
|
||||
|
||||
OSCRouteObserver::OSCRouteObserver (boost::shared_ptr<Stripable> s, lo_address a, uint32_t ss, ArdourSurface::OSC::OSCSurface* su)
|
||||
OSCRouteObserver::OSCRouteObserver (boost::shared_ptr<Stripable> s, uint32_t ss, ArdourSurface::OSC::OSCSurface* su)
|
||||
: _strip (s)
|
||||
,ssid (ss)
|
||||
,sur (su)
|
||||
,_last_gain (0.0)
|
||||
{
|
||||
addr = lo_address_new (lo_address_get_hostname(a) , lo_address_get_port(a));
|
||||
addr = lo_address_new_from_url (sur->remote_url.c_str());
|
||||
gainmode = sur->gainmode;
|
||||
feedback = sur->feedback;
|
||||
as = ARDOUR::Off;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class OSCRouteObserver
|
|||
{
|
||||
|
||||
public:
|
||||
OSCRouteObserver (boost::shared_ptr<ARDOUR::Stripable>, lo_address addr, uint32_t sid, ArdourSurface::OSC::OSCSurface* sur);
|
||||
OSCRouteObserver (boost::shared_ptr<ARDOUR::Stripable>, uint32_t sid, ArdourSurface::OSC::OSCSurface* sur);
|
||||
~OSCRouteObserver ();
|
||||
|
||||
boost::shared_ptr<ARDOUR::Stripable> strip () const { return _strip; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue