diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-05-04 08:24:07 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-05-04 08:25:04 -0400 |
commit | 2e41652e617a9d9e938aca267035bf788d096753 (patch) | |
tree | eed981850eaa7546cf7cb88ef04c5ced8ad12def /libs/ardour/session_state.cc | |
parent | 1f9963cd561e1d11301cbf9c9d2294bb30644fe9 (diff) |
internally, ControllableDescriptors (used by MIDI binding maps) should use enums for automation types, rather than something custom
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index ebb2b99cc1..fcaa76e2ee 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -3784,43 +3784,39 @@ Session::controllable_by_descriptor (const ControllableDescriptor& desc) r = boost::dynamic_pointer_cast<Route> (s); switch (desc.subtype()) { - case ControllableDescriptor::Gain: + case GainAutomation: c = s->gain_control (); break; - case ControllableDescriptor::Trim: + case TrimAutomation: c = s->trim_control (); break; - case ControllableDescriptor::Solo: + case SoloAutomation: c = s->solo_control(); break; - case ControllableDescriptor::Mute: + case MuteAutomation: c = s->mute_control(); break; - case ControllableDescriptor::Recenable: + case RecEnableAutomation: c = s->rec_enable_control (); break; - case ControllableDescriptor::PanDirection: + case PanAzimuthAutomation: c = s->pan_azimuth_control(); break; - case ControllableDescriptor::PanWidth: + case PanWidthAutomation: c = s->pan_width_control(); break; - case ControllableDescriptor::PanElevation: + case PanElevationAutomation: c = s->pan_elevation_control(); break; - case ControllableDescriptor::Balance: - /* XXX simple pan control */ - break; - - case ControllableDescriptor::PluginParameter: + case PluginAutomation: { uint32_t plugin = desc.target (0); uint32_t parameter_index = desc.target (1); @@ -3848,7 +3844,7 @@ Session::controllable_by_descriptor (const ControllableDescriptor& desc) break; } - case ControllableDescriptor::SendGain: { + case SendLevelAutomation: { uint32_t send = desc.target (0); if (send > 0) { --send; |