diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-31 19:47:20 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-31 19:47:20 -0400 |
commit | b5239317d4657ad689ef7ef4d11c1fb6ae3e699b (patch) | |
tree | 830f8a759967912f7032eb92613b16024920d805 /libs/ardour/port.cc | |
parent | fbfa0acebe01e85629c415bec849ca36324c56b1 (diff) |
more stuff compiles
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r-- | libs/ardour/port.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index fea2a041e0..5aa6ad0ae7 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -49,6 +49,7 @@ pframes_t Port::_cycle_nframes = 0; * repeated phrase */ #define port_engine AudioEngine::instance()->port_engine() +#define port_manager AudioEngine::instance() /** @param n Port short name */ Port::Port (std::string const & n, DataType t, PortFlags f) @@ -111,7 +112,7 @@ Port::disconnect_all () /* a cheaper, less hacky way to do boost::shared_from_this() ... */ - boost::shared_ptr<Port> pself = AudioEngine::instance()->get_port_by_name (name()); + boost::shared_ptr<Port> pself = port_manager->get_port_by_name (name()); PostDisconnect (pself, boost::shared_ptr<Port>()); // emit signal return 0; @@ -131,7 +132,7 @@ Port::connected_to (std::string const & o) const return false; } - return port_engine.connected_to (_port_handle, port_engine.make_port_name_non_relative (o)); + return port_engine.connected_to (_port_handle, AudioEngine::instance()->make_port_name_non_relative (o)); } int @@ -143,8 +144,8 @@ Port::get_connections (std::vector<std::string> & c) const int Port::connect (std::string const & other) { - std::string const other_name = port_engine.make_port_name_non_relative (other); - std::string const our_name = port_engine.make_port_name_non_relative (_name); + std::string const other_name = AudioEngine::instance()->make_port_name_non_relative (other); + std::string const our_name = AudioEngine::instance()->make_port_name_non_relative (_name); int r = 0; @@ -168,8 +169,8 @@ Port::connect (std::string const & other) int Port::disconnect (std::string const & other) { - std::string const other_fullname = port_engine.make_port_name_non_relative (other); - std::string const this_fullname = port_engine.make_port_name_non_relative (_name); + std::string const other_fullname = port_manager->make_port_name_non_relative (other); + std::string const this_fullname = port_manager->make_port_name_non_relative (_name); int r = 0; |