diff options
author | Robin Gareus <robin@gareus.org> | 2019-12-14 15:00:34 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-12-14 15:50:56 +0100 |
commit | 93180ceea90e597828ea7473b8e181950df66427 (patch) | |
tree | 4483b690c88eeed7051dea06792b278b9943d059 /libs/ardour/parameter_descriptor.cc | |
parent | d4ad9e348698de3fe2e7b34fef60a6e6d788ea6d (diff) |
Add Inline Control Port Property
This allows to indicate that a control should by default be displayed
inline in the mixer-strip.
Previously that was hard-coded for and enabled for send-level
controls only.
Diffstat (limited to 'libs/ardour/parameter_descriptor.cc')
-rw-r--r-- | libs/ardour/parameter_descriptor.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/parameter_descriptor.cc b/libs/ardour/parameter_descriptor.cc index d959072fb5..0559927d21 100644 --- a/libs/ardour/parameter_descriptor.cc +++ b/libs/ardour/parameter_descriptor.cc @@ -53,8 +53,10 @@ ParameterDescriptor::ParameterDescriptor(const Evoral::Parameter& parameter) /* Note: defaults in Evoral::ParameterDescriptor */ switch((AutomationType)parameter.type()) { - case GainAutomation: case BusSendLevel: + inline_ctrl = true; + /* fallthrough */ + case GainAutomation: upper = Config->get_max_gain(); normal = 1.0f; break; @@ -150,6 +152,7 @@ ParameterDescriptor::ParameterDescriptor() , integer_step(false) , sr_dependent(false) , enumeration(false) + , inline_ctrl(false) {} void |