Browse Source

Remove debug prints

tags/1.9.4
falkTX 10 years ago
parent
commit
b9d4b4ba60
4 changed files with 5 additions and 26 deletions
  1. +0
    -1
      source/carla_shared.py
  2. +0
    -2
      source/modules/jackbridge/JackBridge1.cpp
  3. +0
    -2
      source/modules/jackbridge/JackBridge3.cpp
  4. +5
    -21
      source/modules/jackbridge/JackBridgeExport.cpp

+ 0
- 1
source/carla_shared.py View File

@@ -517,7 +517,6 @@ def initHost(initName, libPrefix = None, failError = True):
# Set binary dir # Set binary dir


CWDl = CWD.lower() CWDl = CWD.lower()
print(CWD)


# standalone, installed system-wide linux # standalone, installed system-wide linux
if libPrefix is not None: if libPrefix is not None:


+ 0
- 2
source/modules/jackbridge/JackBridge1.cpp View File

@@ -557,8 +557,6 @@ jack_client_t* jackbridge_client_open(const char* client_name, jack_options_t op
#elif defined(JACKBRIDGE_DIRECT) #elif defined(JACKBRIDGE_DIRECT)
return jack_client_open(client_name, options, status); return jack_client_open(client_name, options, status);
#else #else
carla_stdout("client_open AFTER %p 0x%x %p", client_name, options, status);

if (getBridgeInstance().client_open_ptr != nullptr) if (getBridgeInstance().client_open_ptr != nullptr)
return getBridgeInstance().client_open_ptr(client_name, options, status); return getBridgeInstance().client_open_ptr(client_name, options, status);
#endif #endif


+ 0
- 2
source/modules/jackbridge/JackBridge3.cpp View File

@@ -134,8 +134,6 @@ const JackBridgeExportedFunctions* jackbridge_get_exported_functions()
funcs.shm_close_ptr = jackbridge_shm_close; funcs.shm_close_ptr = jackbridge_shm_close;
funcs.shm_map_ptr = jackbridge_shm_map; funcs.shm_map_ptr = jackbridge_shm_map;


carla_stdout("jackbridge_get_exported_functions called, ptr=%p", &funcs);

return &funcs; return &funcs;
} }




+ 5
- 21
source/modules/jackbridge/JackBridgeExport.cpp View File

@@ -28,16 +28,13 @@ public:
func(nullptr) func(nullptr)
{ {
#ifdef CARLA_OS_WIN64 #ifdef CARLA_OS_WIN64
lib = LoadLibraryA("jackbridge-wine64.dll");
//lib = lib_open("jackbridge-wine64.dll");
lib = lib_open("jackbridge-wine64.dll");
#else #else
lib = LoadLibraryA("jackbridge-wine32.dll");
//lib = lib_open("jackbridge-wine32.dll");
lib = lib_open("jackbridge-wine32.dll");
#endif #endif
CARLA_SAFE_ASSERT_RETURN(lib != nullptr,); CARLA_SAFE_ASSERT_RETURN(lib != nullptr,);


//func = (jackbridge_exported_function_type)lib_symbol(lib, "jackbridge_get_exported_functions");
func = (jackbridge_exported_function_type)GetProcAddress(lib, "jackbridge_get_exported_functions");
func = (jackbridge_exported_function_type)lib_symbol(lib, "jackbridge_get_exported_functions");
CARLA_SAFE_ASSERT_RETURN(func != nullptr,); CARLA_SAFE_ASSERT_RETURN(func != nullptr,);
} }


@@ -45,8 +42,7 @@ public:
{ {
if (lib == nullptr) if (lib == nullptr)
return; return;
FreeLibrary(lib);
//lib_close(lib);
lib_close(lib);
lib = nullptr; lib = nullptr;
func = nullptr; func = nullptr;
} }
@@ -66,22 +62,11 @@ public:
CARLA_SAFE_ASSERT_RETURN(funcs->unique1 == funcs->unique2, fallback); CARLA_SAFE_ASSERT_RETURN(funcs->unique1 == funcs->unique2, fallback);
CARLA_SAFE_ASSERT_RETURN(funcs->shm_map_ptr != nullptr, fallback); CARLA_SAFE_ASSERT_RETURN(funcs->shm_map_ptr != nullptr, fallback);


carla_stdout("Got wine functions, ptr: %p; testcode: 0x%lx | 0x%lx", funcs, funcs->unique1, funcs->unique2);

#if 1
carla_stdout("Starting tests...");
carla_stdout("1. register a jack client");
jack_client_t* client = funcs->client_open_ptr("test", JackNoStartServer, nullptr);
carla_stdout("2. closing the jack client");
funcs->client_close_ptr(client);
#endif

return *funcs; return *funcs;
} }


private: private:
HMODULE lib;
//void* lib;
void* lib;
jackbridge_exported_function_type func; jackbridge_exported_function_type func;


CARLA_PREVENT_HEAP_ALLOCATION CARLA_PREVENT_HEAP_ALLOCATION
@@ -116,7 +101,6 @@ const char* jackbridge_get_version_string(void)


jack_client_t* jackbridge_client_open(const char* client_name, jack_options_t options, jack_status_t* status) jack_client_t* jackbridge_client_open(const char* client_name, jack_options_t options, jack_status_t* status)
{ {
carla_stdout("client_open BEFORE %p 0x%x %p", client_name, options, status);
return getBridgeInstance().client_open_ptr(client_name, options, status); return getBridgeInstance().client_open_ptr(client_name, options, status);
} }




Loading…
Cancel
Save