13
0

Exclude monitor gain from mixer scenes

This commit is contained in:
Robin Gareus 2024-07-15 00:42:34 +02:00
parent 0ea7e80aa6
commit b50477e608
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 6 additions and 1 deletions

View File

@ -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 ();

View File

@ -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 ()) {

View File

@ -79,6 +79,7 @@ public:
NotAutomatable = 0x08,
InlineControl = 0x10,
HiddenControl = 0x20,
MonitorControl = 0x40,
};
Controllable (const std::string& name, Flag f = Flag (0));