From 183b591a9bac28bd031c6a04f4c9f8f18725d955 Mon Sep 17 00:00:00 2001 From: sletz Date: Sat, 20 Sep 2008 10:50:40 +0000 Subject: Michael Voigt JackAPI cleanup patch. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2934 0c269be4-1314-0410-8aa9-9f06e86f4224 --- common/JackLibAPI.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'common/JackLibAPI.cpp') diff --git a/common/JackLibAPI.cpp b/common/JackLibAPI.cpp index d22a0834..ed5c808c 100644 --- a/common/JackLibAPI.cpp +++ b/common/JackLibAPI.cpp @@ -27,9 +27,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "JackChannel.h" #include "JackLibGlobals.h" #include "JackGlobals.h" -#include "JackServerLaunch.h" #include "JackCompilerDeps.h" #include "JackTools.h" +#include "JackSystemDeps.h" +#include "JackServerLaunch.h" using namespace Jack; @@ -81,30 +82,25 @@ EXPORT jack_client_t* jack_client_open_aux(const char* ext_client_name, jack_opt } /* parse variable arguments */ - if (ap) + if (ap) { jack_varargs_parse(options, ap, &va); - else + } else { jack_varargs_init(&va); + } JackLibGlobals::Init(); // jack library initialisation -#ifndef WIN32 if (try_start_server(&va, options, status)) { jack_error("jack server is not running or cannot be started"); JackLibGlobals::Destroy(); // jack library destruction return 0; } -#endif -#ifndef WIN32 - char* jack_debug = getenv("JACK_CLIENT_DEBUG"); - if (jack_debug && strcmp(jack_debug, "on") == 0) + if (JACK_DEBUG) { client = new JackDebugClient(new JackLibClient(GetSynchroTable())); // Debug mode - else + } else { client = new JackLibClient(GetSynchroTable()); -#else - client = new JackLibClient(GetSynchroTable()); -#endif + } int res = client->Open(va.server_name, client_name, options, status); if (res < 0) { -- cgit v1.2.1