Enable SurroundSend Mute point when loading old sessions

This commit is contained in:
Robin Gareus 2024-02-16 00:04:23 +01:00
parent d79a852207
commit 20d813cd17
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 5 additions and 2 deletions

View File

@ -146,13 +146,16 @@ MuteMaster::set_mute_points (MutePoint mp)
}
int
MuteMaster::set_state (const XMLNode& node, int /*version*/)
MuteMaster::set_state (const XMLNode& node, int version)
{
node.get_property ("mute-point", _mute_point);
if (!node.get_property ("muted", _muted_by_self)) {
_muted_by_self = (_mute_point != MutePoint (0));
}
if (version < 7003 && Config->get_mute_affects_surround_sends ()) {
_muted_by_self |= SurroundSend;
}
return 0;
}

View File

@ -5,7 +5,7 @@ import os
import re
# default state file version for this build
CURRENT_SESSION_FILE_VERSION = 7002
CURRENT_SESSION_FILE_VERSION = 7003
I18N_PACKAGE = 'ardour'