mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-25 14:47:20 +01:00
Vapor: hide surround pan controls when removing channel(s)
This commit is contained in:
parent
21c3c865d3
commit
2579bb6dd4
1 changed files with 13 additions and 0 deletions
|
|
@ -255,6 +255,15 @@ SurroundSend::configure_io (ChanCount in, ChanCount out)
|
|||
add_pannable ();
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
for (uint32_t i = 0; i < n_audio; ++i) {
|
||||
_pannable[i]->foreach_pan_control ([](std::shared_ptr<AutomationControl> ac) { ac->clear_flag (PBD::Controllable::HiddenControl); });
|
||||
}
|
||||
for (uint32_t i = n_audio; i < _pannable.size (); ++i) {
|
||||
_pannable[i]->foreach_pan_control ([](std::shared_ptr<AutomationControl> ac) { ac->set_flag (PBD::Controllable::HiddenControl); });
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef MIXBUS
|
||||
/* Link visibility - currently only for Mixbus which has a custom UI, and at most stereo */
|
||||
for (uint32_t i = 0; i < _pannable.size (); ++i) {
|
||||
|
|
@ -348,6 +357,10 @@ SurroundSend::cycle_start (pframes_t /*nframes*/)
|
|||
std::string
|
||||
SurroundSend::describe_parameter (Evoral::Parameter param)
|
||||
{
|
||||
if (param.id() >= n_pannables ()) {
|
||||
return X_("hidden");
|
||||
}
|
||||
|
||||
if (n_pannables () < 2) {
|
||||
/* Use default names */
|
||||
return Automatable::describe_parameter (param);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue