From 2e41652e617a9d9e938aca267035bf788d096753 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 4 May 2018 08:24:07 -0400 Subject: internally, ControllableDescriptors (used by MIDI binding maps) should use enums for automation types, rather than something custom --- libs/ardour/session_state.cc | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'libs/ardour/session_state.cc') 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 (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; -- cgit v1.2.3