Do not implicitly modify VST support config parameters
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user