mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
profile initialization per-program needs to happen earlier, in ARDOUR::init()
This commit is contained in:
parent
d028292748
commit
e7a15ce377
2 changed files with 8 additions and 9 deletions
|
|
@ -458,15 +458,6 @@ int main (int argc, char *argv[])
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (g_getenv ("MIXBUS")) {
|
|
||||||
ARDOUR::Profile->set_mixbus ();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!strcmp (PROGRAM_NAME, X_("Livetrax"))) {
|
|
||||||
ARDOUR::Profile->set_livetrax ();
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ui = new ARDOUR_UI (&argc, &argv, localedir.c_str());
|
ui = new ARDOUR_UI (&argc, &argv, localedir.c_str());
|
||||||
} catch (failed_constructor& err) {
|
} catch (failed_constructor& err) {
|
||||||
|
|
|
||||||
|
|
@ -688,6 +688,14 @@ ARDOUR::init (bool try_optimization, const char* localedir, bool with_gui)
|
||||||
|
|
||||||
Profile = new RuntimeProfile;
|
Profile = new RuntimeProfile;
|
||||||
|
|
||||||
|
if (g_getenv ("MIXBUS")) {
|
||||||
|
ARDOUR::Profile->set_mixbus ();
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef LIVETRAX
|
||||||
|
ARDOUR::Profile->set_livetrax ();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WINDOWS_VST_SUPPORT
|
#ifdef WINDOWS_VST_SUPPORT
|
||||||
if (Config->get_use_windows_vst () && fst_init (0)) {
|
if (Config->get_use_windows_vst () && fst_init (0)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue