summaryrefslogtreecommitdiff
path: root/libs/surfaces
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2014-07-22 22:19:46 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2014-07-22 22:19:46 +0100
commit7984cd23212be1428e3d644e2200bb96fcef13e6 (patch)
treede0ca99388cbd19da964d94444b999d4db550935 /libs/surfaces
parentfdaa6a151aa6b0022879d282802b2166aec653dc (diff)
Changes needed for building surfaces/osc (control surface protocol) with MSVC
(for testing on the non-Windows platforms)
Diffstat (limited to 'libs/surfaces')
-rw-r--r--libs/surfaces/osc/interface.cc18
-rw-r--r--libs/surfaces/osc/osc_route_observer.cc14
2 files changed, 15 insertions, 17 deletions
diff --git a/libs/surfaces/osc/interface.cc b/libs/surfaces/osc/interface.cc
index f20d898418..5390a9682a 100644
--- a/libs/surfaces/osc/interface.cc
+++ b/libs/surfaces/osc/interface.cc
@@ -46,15 +46,15 @@ probe_osc_protocol (ControlProtocolDescriptor* /*descriptor*/)
}
static ControlProtocolDescriptor osc_descriptor = {
- name : "Open Sound Control (OSC)",
- id : "uri://ardour.org/surfaces/osc:0",
- ptr : 0,
- module : 0,
- mandatory : 0,
- supports_feedback : true,
- probe : probe_osc_protocol,
- initialize : new_osc_protocol,
- destroy : delete_osc_protocol
+ /*name : */ "Open Sound Control (OSC)",
+ /*id : */ "uri://ardour.org/surfaces/osc:0",
+ /*ptr : */ 0,
+ /*module : */ 0,
+ /*mandatory : */ 0,
+ /*supports_feedback : */ true,
+ /*probe : */ probe_osc_protocol,
+ /*initialize : */ new_osc_protocol,
+ /*destroy : */ delete_osc_protocol
};
extern "C" ARDOURSURFACE_API ControlProtocolDescriptor* protocol_descriptor () { return &osc_descriptor; }
diff --git a/libs/surfaces/osc/osc_route_observer.cc b/libs/surfaces/osc/osc_route_observer.cc
index 576b92d1bb..ae3e27476b 100644
--- a/libs/surfaces/osc/osc_route_observer.cc
+++ b/libs/surfaces/osc/osc_route_observer.cc
@@ -29,10 +29,8 @@
#include "i18n.h"
using namespace std;
-using namespace sigc;
using namespace PBD;
using namespace ARDOUR;
-using namespace boost;
OSCRouteObserver::OSCRouteObserver (boost::shared_ptr<Route> r, lo_address a)
: _route (r)
@@ -41,21 +39,21 @@ OSCRouteObserver::OSCRouteObserver (boost::shared_ptr<Route> r, lo_address a)
_route->PropertyChanged.connect (name_changed_connection, MISSING_INVALIDATOR, boost::bind (&OSCRouteObserver::name_changed, this, boost::lambda::_1), OSC::instance());
- if (dynamic_pointer_cast<AudioTrack>(_route) || dynamic_pointer_cast<MidiTrack>(_route)) {
+ if (boost::dynamic_pointer_cast<AudioTrack>(_route) || boost::dynamic_pointer_cast<MidiTrack>(_route)) {
- boost::shared_ptr<Track> track = dynamic_pointer_cast<Track>(r);
- boost::shared_ptr<Controllable> rec_controllable = dynamic_pointer_cast<Controllable>(track->rec_enable_control());
+ boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track>(r);
+ boost::shared_ptr<Controllable> rec_controllable = boost::dynamic_pointer_cast<Controllable>(track->rec_enable_control());
rec_controllable->Changed.connect (rec_changed_connection, MISSING_INVALIDATOR, bind (&OSCRouteObserver::send_change_message, this, X_("/route/rec"), track->rec_enable_control()), OSC::instance());
}
- boost::shared_ptr<Controllable> mute_controllable = dynamic_pointer_cast<Controllable>(_route->mute_control());
+ boost::shared_ptr<Controllable> mute_controllable = boost::dynamic_pointer_cast<Controllable>(_route->mute_control());
mute_controllable->Changed.connect (mute_changed_connection, MISSING_INVALIDATOR, bind (&OSCRouteObserver::send_change_message, this, X_("/route/mute"), _route->mute_control()), OSC::instance());
- boost::shared_ptr<Controllable> solo_controllable = dynamic_pointer_cast<Controllable>(_route->solo_control());
+ boost::shared_ptr<Controllable> solo_controllable = boost::dynamic_pointer_cast<Controllable>(_route->solo_control());
solo_controllable->Changed.connect (solo_changed_connection, MISSING_INVALIDATOR, bind (&OSCRouteObserver::send_change_message, this, X_("/route/solo"), _route->solo_control()), OSC::instance());
- boost::shared_ptr<Controllable> gain_controllable = dynamic_pointer_cast<Controllable>(_route->gain_control());
+ boost::shared_ptr<Controllable> gain_controllable = boost::dynamic_pointer_cast<Controllable>(_route->gain_control());
gain_controllable->Changed.connect (gain_changed_connection, MISSING_INVALIDATOR, bind (&OSCRouteObserver::send_change_message, this, X_("/route/gain"), _route->gain_control()), OSC::instance());
}