Exclude monitor gain from mixer scenes
This commit is contained in:
parent
0ea7e80aa6
commit
b50477e608
@ -67,7 +67,9 @@ MixerScene::snapshot ()
|
||||
if (!std::dynamic_pointer_cast<AutomationControl> (c)) {
|
||||
continue;
|
||||
}
|
||||
if (c->flags () & Controllable::HiddenControl) {
|
||||
if (std::dynamic_pointer_cast<GainControl> (c)) {
|
||||
}
|
||||
if (c->flags () & Controllable::Flag (Controllable::HiddenControl | Controllable::MonitorControl)) {
|
||||
continue;
|
||||
}
|
||||
_ctrl_map[c->id ()] = c->get_save_value ();
|
||||
|
@ -226,6 +226,8 @@ Route::init ()
|
||||
|
||||
if (is_monitor ()) {
|
||||
_amp->set_display_name (_("Monitor"));
|
||||
_gain_control->set_flag (Controllable::MonitorControl);
|
||||
_trim_control->set_flag (Controllable::MonitorControl);
|
||||
}
|
||||
|
||||
if (!is_singleton () && !is_auditioner ()) {
|
||||
|
@ -79,6 +79,7 @@ public:
|
||||
NotAutomatable = 0x08,
|
||||
InlineControl = 0x10,
|
||||
HiddenControl = 0x20,
|
||||
MonitorControl = 0x40,
|
||||
};
|
||||
|
||||
Controllable (const std::string& name, Flag f = Flag (0));
|
||||
|
Loading…
Reference in New Issue
Block a user