diff options
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/controllable_descriptor.h | 21 | ||||
-rw-r--r-- | libs/ardour/ardour/types.h | 5 |
2 files changed, 8 insertions, 18 deletions
diff --git a/libs/ardour/ardour/controllable_descriptor.h b/libs/ardour/ardour/controllable_descriptor.h index 9f160227dc..af762473a9 100644 --- a/libs/ardour/ardour/controllable_descriptor.h +++ b/libs/ardour/ardour/controllable_descriptor.h @@ -24,6 +24,7 @@ #include <stdint.h> #include "ardour/libardour_visibility.h" +#include "ardour/types.h" namespace ARDOUR { @@ -38,23 +39,9 @@ public: SelectionCount, }; - enum SubType { - Gain, - Trim, - Solo, - Mute, - Recenable, - PanDirection, - PanWidth, - PanElevation, - Balance, - SendGain, - PluginParameter - }; - ControllableDescriptor () : _top_level_type (PresentationOrderRoute) - , _subtype (Gain) + , _subtype (GainAutomation) , _banked (false) , _bank_offset (0) {} @@ -68,7 +55,7 @@ public: TopLevelType top_level_type() const { return _top_level_type; } const std::string& top_level_name() const { return _top_level_name; } - SubType subtype() const { return _subtype; } + AutomationType subtype() const { return _subtype; } uint32_t presentation_order() const; uint32_t selection_id() const; @@ -79,7 +66,7 @@ public: private: TopLevelType _top_level_type; - SubType _subtype; + AutomationType _subtype; std::string _top_level_name; union { uint32_t _presentation_order; diff --git a/libs/ardour/ardour/types.h b/libs/ardour/ardour/types.h index 4bdab6b070..1d08c5bea3 100644 --- a/libs/ardour/ardour/types.h +++ b/libs/ardour/ardour/types.h @@ -151,7 +151,10 @@ namespace ARDOUR { PhaseAutomation, MonitoringAutomation, BusSendLevel, - BusSendEnable + BusSendEnable, + SendLevelAutomation, /* used only by a controllable descriptor + to refer to gain of a particular send + */ }; enum AutoState { |