summaryrefslogtreecommitdiff
path: root/libs/ardour/vca.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-04-25 13:41:38 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:41 -0400
commitf485cfa324717f57b9f820f43f1b53307b96a8b9 (patch)
tree39ad198f588b521e748356809d255a3c4c6f4c08 /libs/ardour/vca.cc
parenteee3837245f570d36e5d4d92409660c8ff777b5b (diff)
rearrange inheritance so that Automatable IS-A Slavable
Share assign code via Slavable; add visibility tags to Slavable+SlavableAutomationControl
Diffstat (limited to 'libs/ardour/vca.cc')
-rw-r--r--libs/ardour/vca.cc55
1 files changed, 0 insertions, 55 deletions
diff --git a/libs/ardour/vca.cc b/libs/ardour/vca.cc
index 2d1fbdec8f..8227bf8749 100644
--- a/libs/ardour/vca.cc
+++ b/libs/ardour/vca.cc
@@ -161,61 +161,6 @@ VCA::clear_all_solo_state ()
_solo_control->clear_all_solo_state ();
}
-int
-VCA::assign_controls (boost::shared_ptr<VCA> vca)
-{
- boost::shared_ptr<SlavableAutomationControl> slave;
- boost::shared_ptr<AutomationControl> master;
- AutomationType types[] = {
- GainAutomation,
- SoloAutomation,
- MuteAutomation,
- RecEnableAutomation,
- MonitoringAutomation,
- NullAutomation
- };
-
- for (uint32_t n = 0; types[n] != NullAutomation; ++n) {
-
- slave = boost::dynamic_pointer_cast<SlavableAutomationControl> (automation_control (types[n]));
- master = vca->automation_control (types[n]);
-
- if (slave && master) {
- slave->add_master (master);
- }
- }
-
- return 0;
-}
-
-int
-VCA::unassign_controls (boost::shared_ptr<VCA> vca)
-{
- boost::shared_ptr<SlavableAutomationControl> slave;
- boost::shared_ptr<AutomationControl> master;
- AutomationType types[] = {
- GainAutomation,
- SoloAutomation,
- MuteAutomation,
- RecEnableAutomation,
- MonitoringAutomation,
- NullAutomation
- };
-
- for (uint32_t n = 0; types[n] != NullAutomation; ++n) {
-
- slave = boost::dynamic_pointer_cast<SlavableAutomationControl> (automation_control (types[n]));
- if (!vca) {
- /* unassign from all */
- slave->clear_masters ();
- } else {
- slave->remove_master (master);
- }
- }
-
- return 0;
-}
-
MonitorState
VCA::monitoring_state () const
{