Do not implicitly modify VST support config parameters
This commit is contained in:
parent
7c45502f46
commit
16da5419d3
@ -257,7 +257,7 @@ int main (int argc, char **argv)
|
||||
// TODO setlocale..
|
||||
#endif
|
||||
|
||||
if (!ARDOUR::init (false, true, localedir)) {
|
||||
if (!ARDOUR::init (true, localedir)) {
|
||||
cerr << "Ardour failed to initialize\n" << endl;
|
||||
::exit (EXIT_FAILURE);
|
||||
}
|
||||
|
@ -383,7 +383,7 @@ int main (int argc, char *argv[])
|
||||
SetErrorMode (prev_error_mode);
|
||||
#endif
|
||||
|
||||
if (!ARDOUR::init (ARDOUR_COMMAND_LINE::use_vst, ARDOUR_COMMAND_LINE::try_hw_optimization, localedir.c_str(), true)) {
|
||||
if (!ARDOUR::init (ARDOUR_COMMAND_LINE::try_hw_optimization, localedir.c_str(), true)) {
|
||||
error << string_compose (_("could not initialize %1."), PROGRAM_NAME) << endmsg;
|
||||
Gtk::Main main (argc, argv);
|
||||
Gtk::MessageDialog msg (string_compose (_("Could not initialize %1 (likely due to corrupt config files).\n"
|
||||
|
@ -267,7 +267,7 @@ int main (int argc, char **argv)
|
||||
// TODO setlocale..
|
||||
#endif
|
||||
|
||||
if (!ARDOUR::init (false, true, localedir)) {
|
||||
if (!ARDOUR::init (true, localedir)) {
|
||||
cerr << "Ardour failed to initialize\n" << endl;
|
||||
::exit (EXIT_FAILURE);
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ print_help ()
|
||||
int
|
||||
main (int argc, char* argv[])
|
||||
{
|
||||
const char* optstring = "vhBdD:c:VOU:P";
|
||||
const char* optstring = "vhBdD:c:OU:P";
|
||||
|
||||
/* clang-format off */
|
||||
const struct option longopts[] = {
|
||||
@ -159,14 +159,12 @@ main (int argc, char* argv[])
|
||||
{ "disable-plugins", no_argument, 0, 'd' },
|
||||
{ "debug", required_argument, 0, 'D' },
|
||||
{ "name", required_argument, 0, 'c' },
|
||||
{ "novst", no_argument, 0, 'V' },
|
||||
{ "no-hw-optimizations", no_argument, 0, 'O' },
|
||||
{ "no-connect-ports", no_argument, 0, 'P' },
|
||||
{ 0, 0, 0, 0 }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
bool use_vst = true;
|
||||
bool try_hw_optimization = true;
|
||||
|
||||
backend_client_name = PBD::downcase (std::string (PROGRAM_NAME));
|
||||
@ -213,12 +211,6 @@ main (int argc, char* argv[])
|
||||
ARDOUR::Port::set_connecting_blocked (true);
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
#ifdef WINDOWS_VST_SUPPORT
|
||||
use_vst = false;
|
||||
#endif /* WINDOWS_VST_SUPPORT */
|
||||
break;
|
||||
|
||||
default:
|
||||
print_help ();
|
||||
exit (EXIT_FAILURE);
|
||||
@ -230,7 +222,7 @@ main (int argc, char* argv[])
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (!ARDOUR::init (use_vst, try_hw_optimization, localedir)) {
|
||||
if (!ARDOUR::init (try_hw_optimization, localedir)) {
|
||||
cerr << "Ardour failed to initialize\n"
|
||||
<< endl;
|
||||
exit (EXIT_FAILURE);
|
||||
|
@ -59,7 +59,6 @@ namespace ARDOUR {
|
||||
extern LIBARDOUR_API std::map<std::string, bool> reserved_io_names;
|
||||
|
||||
/**
|
||||
* @param with_vst true to enable VST Support
|
||||
* @param try_optimization true to enable hardware optimized routines
|
||||
* for mixing, finding peak values etc.
|
||||
* @param localedir Directory to look for localisation files
|
||||
@ -68,7 +67,7 @@ namespace ARDOUR {
|
||||
*
|
||||
* @return true if Ardour library was successfully initialized
|
||||
*/
|
||||
LIBARDOUR_API bool init (bool with_vst, bool try_optimization, const char* localedir, bool with_gui = false);
|
||||
LIBARDOUR_API bool init (bool try_optimization, const char* localedir, bool with_gui = false);
|
||||
LIBARDOUR_API void init_post_engine (uint32_t);
|
||||
LIBARDOUR_API void cleanup ();
|
||||
LIBARDOUR_API bool no_auto_connect ();
|
||||
|
@ -518,7 +518,7 @@ ARDOUR::handle_old_configuration_files (boost::function<bool(std::string const&,
|
||||
}
|
||||
|
||||
bool
|
||||
ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir, bool with_gui)
|
||||
ARDOUR::init (bool try_optimization, const char* localedir, bool with_gui)
|
||||
{
|
||||
if (libardour_initialized) {
|
||||
return true;
|
||||
@ -592,11 +592,6 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir
|
||||
return false;
|
||||
}
|
||||
|
||||
Config->set_use_windows_vst (use_windows_vst);
|
||||
#ifdef LXVST_SUPPORT
|
||||
Config->set_use_lxvst (true);
|
||||
#endif
|
||||
|
||||
Profile = new RuntimeProfile;
|
||||
|
||||
#ifdef WINDOWS_VST_SUPPORT
|
||||
|
@ -44,7 +44,7 @@ int main (int argc, char* argv[])
|
||||
|
||||
PBD::Timing ardour_init_timing;
|
||||
|
||||
ARDOUR::init (false, true, localedir);
|
||||
ARDOUR::init (true, localedir);
|
||||
ardour_init_timing.update();
|
||||
|
||||
TestUI* test_ui = new TestUI();
|
||||
|
@ -19,7 +19,7 @@ int main (int argc, char* argv[])
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
ARDOUR::init (false, true, localedir);
|
||||
ARDOUR::init (true, localedir);
|
||||
TestUI* test_ui = new TestUI();
|
||||
create_and_start_dummy_backend ();
|
||||
|
||||
|
@ -16,7 +16,7 @@ static const char* localedir = LOCALEDIR;
|
||||
int
|
||||
main (int argc, char* argv[])
|
||||
{
|
||||
ARDOUR::init (false, true, localedir);
|
||||
ARDOUR::init (true, localedir);
|
||||
TestUI* test_ui = new TestUI();
|
||||
create_and_start_dummy_backend ();
|
||||
Session* session = load_session ("../libs/ardour/test/profiling/sessions/1region", "1region");
|
||||
|
@ -21,7 +21,7 @@ main (int argc, char* argv[])
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
ARDOUR::init (false, true, localedir);
|
||||
ARDOUR::init (true, localedir);
|
||||
TestUI* test_ui = new TestUI();
|
||||
create_and_start_dummy_backend ();
|
||||
|
||||
|
@ -46,11 +46,6 @@ TestUI::TestUI ()
|
||||
m_test_receiver.listen_to (PBD::warning);
|
||||
m_test_receiver.listen_to (PBD::error);
|
||||
m_test_receiver.listen_to (PBD::fatal);
|
||||
|
||||
/* We can't use VSTs here as we have a stub instead of the
|
||||
required bits in gtk2_ardour.
|
||||
*/
|
||||
Config->set_use_lxvst (false);
|
||||
}
|
||||
|
||||
TestUI::~TestUI ()
|
||||
|
@ -49,7 +49,7 @@ main(int argc, char* argv[])
|
||||
}
|
||||
}
|
||||
|
||||
CPPUNIT_ASSERT (ARDOUR::init (false, true, localedir));
|
||||
CPPUNIT_ASSERT (ARDOUR::init (true, localedir));
|
||||
|
||||
TestUI* test_ui = new TestUI();
|
||||
|
||||
|
@ -144,7 +144,7 @@ static MyEventLoop* event_loop = NULL;
|
||||
static void
|
||||
init ()
|
||||
{
|
||||
if (!ARDOUR::init (false, true, localedir)) {
|
||||
if (!ARDOUR::init (true, localedir)) {
|
||||
cerr << "Ardour failed to initialize\n" << endl;
|
||||
console_madness_end ();
|
||||
::exit (EXIT_FAILURE);
|
||||
|
@ -114,7 +114,7 @@ static MyEventLoop *event_loop;
|
||||
void
|
||||
SessionUtils::init (bool print_log)
|
||||
{
|
||||
if (!ARDOUR::init (false, true, localedir)) {
|
||||
if (!ARDOUR::init (true, localedir)) {
|
||||
cerr << "Ardour failed to initialize\n" << endl;
|
||||
::exit (EXIT_FAILURE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user