mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
make mackie surfaces aware of VCAs
This commit is contained in:
parent
c34ad3a723
commit
4b7bbacaaa
2 changed files with 9 additions and 1 deletions
|
|
@ -59,6 +59,7 @@
|
|||
#include "ardour/track.h"
|
||||
#include "ardour/types.h"
|
||||
#include "ardour/audioengine.h"
|
||||
#include "ardour/vca_manager.h"
|
||||
|
||||
#include "mackie_control_protocol.h"
|
||||
|
||||
|
|
@ -699,7 +700,7 @@ MackieControlProtocol::connect_session_signals()
|
|||
// receive routes added
|
||||
session->RouteAdded.connect(session_connections, MISSING_INVALIDATOR, boost::bind (&MackieControlProtocol::notify_routes_added, this, _1), this);
|
||||
// receive VCAs added
|
||||
//session->RoutesAdded.connect(session_connections, MISSING_INVALIDATOR, boost::bind (&MackieControlProtocol::notify_stripable_added, this, _1), this);
|
||||
session->vca_manager().VCAAdded.connect(session_connections, MISSING_INVALIDATOR, boost::bind (&MackieControlProtocol::notify_vca_added, this, _1), this);
|
||||
|
||||
// receive record state toggled
|
||||
session->RecordStateChanged.connect(session_connections, MISSING_INVALIDATOR, boost::bind (&MackieControlProtocol::notify_record_state_changed, this), this);
|
||||
|
|
@ -1243,6 +1244,12 @@ MackieControlProtocol::notify_stripable_removed ()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
MackieControlProtocol::notify_vca_added (ARDOUR::VCAList& vl)
|
||||
{
|
||||
refresh_current_bank ();
|
||||
}
|
||||
|
||||
// RouteList is the set of Routes that have just been added
|
||||
void
|
||||
MackieControlProtocol::notify_routes_added (ARDOUR::RouteList & rl)
|
||||
|
|
|
|||
|
|
@ -188,6 +188,7 @@ class MackieControlProtocol
|
|||
void notify_subview_stripable_deleted ();
|
||||
void notify_stripable_removed ();
|
||||
void notify_routes_added (ARDOUR::RouteList &);
|
||||
void notify_vca_added (ARDOUR::VCAList &);
|
||||
|
||||
void notify_presentation_info_changed();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue