summaryrefslogtreecommitdiff
path: root/libs/ardour/jack_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/jack_utils.cc')
-rw-r--r--libs/ardour/jack_utils.cc40
1 files changed, 0 insertions, 40 deletions
diff --git a/libs/ardour/jack_utils.cc b/libs/ardour/jack_utils.cc
index ecbf8976fd..d9e5f00cca 100644
--- a/libs/ardour/jack_utils.cc
+++ b/libs/ardour/jack_utils.cc
@@ -916,43 +916,3 @@ ARDOUR::write_jack_config_file (const std::string& config_file_path, const strin
jackdrc.close ();
return true;
}
-
-bool
-ARDOUR::start_jack_server (const string& command_line)
-{
-#ifdef PLATFORM_WINDOWS
- STARTUPINFO si;
- PROCESS_INFORMATION pi;
- char * cmdline = g_strdup (command_line.c_str());
-
- memset (&si, 0, sizeof (si));
- si.cb = sizeof (&si);
- memset (&pi, 0, sizeof (pi));
-
- if (!CreateProcess (
- NULL, // No module name, use command line
- cmdline,
- NULL, // Process handle not inheritable
- NULL, // Thread handle not inheritable
- FALSE, // set handle inheritance to false
- 0, // No creation flags
- NULL, // Use parents environment block
- NULL, // Use parents starting directory
- &si,
- &pi))
- {
- error << string_compose ("cannot start JACK server: %s", g_win32_error_message (GetLastError ())) << endmsg;
- }
-
- g_free (cmdline);
-
- // wait for 2 seconds for server to start
- for (int i = 0; i < 8; ++i) {
- Sleep (250); // 1/4 second
- if (jack_server_running ()) return true;
- }
-#else
- (void) command_line;
-#endif
- return false;
-}