mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
don't actually use a method from libardourcp inside libardour; use a PBD::Signal to avoid linker issues
This commit is contained in:
parent
38285d0e54
commit
7021d02782
4 changed files with 13 additions and 2 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include "pbd/convert.h"
|
||||
#include "pbd/error.h"
|
||||
|
||||
#include "ardour/control_protocol_manager.h"
|
||||
#include "ardour/gain_control.h"
|
||||
#include "ardour/session.h"
|
||||
#include "ardour/record_enable_control.h"
|
||||
|
|
@ -60,6 +61,8 @@ Glib::Threads::Mutex ControlProtocol::special_stripable_mutex;
|
|||
boost::weak_ptr<Stripable> ControlProtocol::_first_selected_stripable;
|
||||
boost::weak_ptr<Stripable> ControlProtocol::_leftmost_mixer_stripable;
|
||||
StripableNotificationList ControlProtocol::_last_selected;
|
||||
PBD::ScopedConnection ControlProtocol::selection_connection;
|
||||
bool ControlProtocol::selection_connected = false;
|
||||
|
||||
const std::string ControlProtocol::state_node_name ("Protocol");
|
||||
|
||||
|
|
@ -68,6 +71,11 @@ ControlProtocol::ControlProtocol (Session& s, string str)
|
|||
, _name (str)
|
||||
, _active (false)
|
||||
{
|
||||
if (!selection_connected) {
|
||||
/* this is all static, connect it only once (and early), for all ControlProtocols */
|
||||
ControlProtocolManager::StripableSelectionChanged.connect_same_thread (selection_connection, boost::bind (&ControlProtocol::notify_stripable_selection_changed, _1));
|
||||
selection_connected = true;
|
||||
}
|
||||
}
|
||||
|
||||
ControlProtocol::~ControlProtocol ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue