13
0

add a user config var for preferred time domain (libardour part)

(as opposed to default_time_domain which is the per-session default)
This commit is contained in:
Ben Loftis 2023-10-01 13:57:28 -05:00
parent 460b9a24ff
commit 6c68817b26
2 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,8 @@
the value of the variable. the value of the variable.
*****************************************************/ *****************************************************/
CONFIG_VARIABLE (Temporal::TimeDomain, preferred_time_domain, "preferred_time_domain", Temporal::BeatTime)
/* IO connection */ /* IO connection */
CONFIG_VARIABLE (bool, auto_connect_standard_busses, "auto-connect-standard-busses", true) CONFIG_VARIABLE (bool, auto_connect_standard_busses, "auto-connect-standard-busses", true)

View File

@ -4588,6 +4588,7 @@ Session::config_changed (std::string p, bool ours)
Temporal::TimeDomain td = config.get_default_time_domain (); Temporal::TimeDomain td = config.get_default_time_domain ();
std::cerr << "Setting time domain\n"; std::cerr << "Setting time domain\n";
set_time_domain (td); set_time_domain (td);
Config->set_preferred_time_domain(td); /* sync the global default time domain to this newly chosen one */
} }
set_dirty (); set_dirty ();