MuseScore  3.4
Music composition and notation
Macros | Typedefs | Functions | Variables
jackweakapi.cpp File Reference
#include <jack/jack.h>
#include <jack/thread.h>
#include <jack/midiport.h>
#include <math.h>
#include <dlfcn.h>
#include <stdlib.h>
#include <iostream>
Include dependency graph for jackweakapi.cpp:

Macros

#define DECL_FUNCTION(return_type, fn_name, arguments_types, arguments)
 
#define DECL_FUNCTION_NULL(return_type, fn_name, arguments_types, arguments)
 
#define DECL_VOID_FUNCTION(fn_name, arguments_types, arguments)
 

Typedefs

typedef pthread_t jack_native_thread_t
 
typedef void(* print_function) (const char *)
 
typedef void *(* thread_routine) (void *)
 

Functions

void * load_jack_function (const char *fn_name)
 
 DECL_VOID_FUNCTION (jack_get_version,(int *major_ptr, int *minor_ptr, int *micro_ptr, int *proto_ptr),(major_ptr, minor_ptr, micro_ptr, proto_ptr))
 
 DECL_FUNCTION_NULL (const char *, jack_get_version_string,(),())
 
 DECL_FUNCTION_NULL (jack_client_t *, jack_client_open,(const char *client_name, jack_options_t options, jack_status_t *status,...),(client_name, options, status))
 
 DECL_FUNCTION (int, jack_client_close,(jack_client_t *client),(client))
 
 DECL_FUNCTION_NULL (jack_client_t *, jack_client_new,(const char *client_name),(client_name))
 
 DECL_FUNCTION (int, jack_client_name_size,(),())
 
 DECL_FUNCTION_NULL (char *, jack_get_client_name,(jack_client_t *client),(client))
 
 DECL_FUNCTION (int, jack_internal_client_new,(const char *client_name, const char *load_name, const char *load_init),(client_name, load_name, load_init))
 
 DECL_VOID_FUNCTION (jack_internal_client_close,(const char *client_name),(client_name))
 
 DECL_FUNCTION (int, jack_is_realtime,(jack_client_t *client),(client))
 
 DECL_FUNCTION (int, jack_set_process_callback,(jack_client_t *client, JackProcessCallback process_callback, void *arg),(client, process_callback, arg))
 
 DECL_FUNCTION (jack_nframes_t, jack_thread_wait,(jack_client_t *client, int status),(client, status))
 
 DECL_FUNCTION (jack_nframes_t, jack_cycle_wait,(jack_client_t *client),(client))
 
 DECL_VOID_FUNCTION (jack_cycle_signal,(jack_client_t *client, int status),(client, status))
 
 DECL_FUNCTION (int, jack_set_thread_init_callback,(jack_client_t *client, JackThreadInitCallback thread_init_callback, void *arg),(client, thread_init_callback, arg))
 
 DECL_FUNCTION (int, jack_set_freewheel_callback,(jack_client_t *client, JackFreewheelCallback freewheel_callback, void *arg),(client, freewheel_callback, arg))
 
 DECL_FUNCTION (int, jack_set_freewheel,(jack_client_t *client, int onoff),(client, onoff))
 
 DECL_FUNCTION (int, jack_set_buffer_size,(jack_client_t *client, jack_nframes_t nframes),(client, nframes))
 
 DECL_FUNCTION (int, jack_set_buffer_size_callback,(jack_client_t *client, JackBufferSizeCallback bufsize_callback, void *arg),(client, bufsize_callback, arg))
 
 DECL_FUNCTION (int, jack_set_sample_rate_callback,(jack_client_t *client, JackSampleRateCallback srate_callback, void *arg),(client, srate_callback, arg))
 
 DECL_FUNCTION (int, jack_set_client_registration_callback,(jack_client_t *client, JackClientRegistrationCallback registration_callback, void *arg),(client, registration_callback, arg))
 
 DECL_FUNCTION (int, jack_set_port_registration_callback,(jack_client_t *client, JackPortRegistrationCallback registration_callback, void *arg),(client, registration_callback, arg))
 
 DECL_FUNCTION (int, jack_set_port_connect_callback,(jack_client_t *client, JackPortConnectCallback connect_callback, void *arg),(client, connect_callback, arg))
 
 DECL_FUNCTION (int, jack_set_graph_order_callback,(jack_client_t *client, JackGraphOrderCallback graph_callback, void *arg),(client, graph_callback, arg))
 
 DECL_FUNCTION (int, jack_set_xrun_callback,(jack_client_t *client, JackXRunCallback xrun_callback, void *arg),(client, xrun_callback, arg))
 
 DECL_FUNCTION (int, jack_activate,(jack_client_t *client),(client))
 
 DECL_FUNCTION (int, jack_deactivate,(jack_client_t *client),(client))
 
 DECL_FUNCTION_NULL (jack_port_t *, jack_port_register,(jack_client_t *client, const char *port_name, const char *port_type, unsigned long flags, unsigned long buffer_size),(client, port_name, port_type, flags, buffer_size))
 
 DECL_FUNCTION (int, jack_port_unregister,(jack_client_t *client, jack_port_t *port),(client, port))
 
 DECL_FUNCTION_NULL (void *, jack_port_get_buffer,(jack_port_t *port, jack_nframes_t nframes),(port, nframes))
 
 DECL_FUNCTION_NULL (const char *, jack_port_name,(const jack_port_t *port),(port))
 
 DECL_FUNCTION_NULL (const char *, jack_port_short_name,(const jack_port_t *port),(port))
 
 DECL_FUNCTION (int, jack_port_flags,(const jack_port_t *port),(port))
 
 DECL_FUNCTION_NULL (const char *, jack_port_type,(const jack_port_t *port),(port))
 
 DECL_FUNCTION (int, jack_port_is_mine,(const jack_client_t *client, const jack_port_t *port),(client, port))
 
 DECL_FUNCTION (int, jack_port_connected,(const jack_port_t *port),(port))
 
 DECL_FUNCTION (int, jack_port_connected_to,(const jack_port_t *port, const char *port_name),(port, port_name))
 
 DECL_FUNCTION_NULL (const char **, jack_port_get_connections,(const jack_port_t *port),(port))
 
 DECL_FUNCTION_NULL (const char **, jack_port_get_all_connections,(const jack_client_t *client, const jack_port_t *port),(client, port))
 
 DECL_FUNCTION (int, jack_port_tie,(jack_port_t *src, jack_port_t *dst),(src, dst))
 
 DECL_FUNCTION (int, jack_port_untie,(jack_port_t *port),(port))
 
 DECL_FUNCTION (jack_nframes_t, jack_port_get_latency,(jack_port_t *port),(port))
 
 DECL_FUNCTION (jack_nframes_t, jack_port_get_total_latency,(jack_client_t *client, jack_port_t *port),(client, port))
 
 DECL_VOID_FUNCTION (jack_port_set_latency,(jack_port_t *port, jack_nframes_t frames),(port, frames))
 
 DECL_FUNCTION (int, jack_recompute_total_latency,(jack_client_t *client, jack_port_t *port),(client, port))
 
 DECL_FUNCTION (int, jack_recompute_total_latencies,(jack_client_t *client),(client))
 
 DECL_FUNCTION (int, jack_port_set_name,(jack_port_t *port, const char *port_name),(port, port_name))
 
 DECL_FUNCTION (int, jack_port_set_alias,(jack_port_t *port, const char *alias),(port, alias))
 
 DECL_FUNCTION (int, jack_port_unset_alias,(jack_port_t *port, const char *alias),(port, alias))
 
 DECL_FUNCTION (int, jack_port_get_aliases,(const jack_port_t *port, char *const aliases[2]),(port, aliases))
 
 DECL_FUNCTION (int, jack_port_request_monitor,(jack_port_t *port, int onoff),(port, onoff))
 
 DECL_FUNCTION (int, jack_port_request_monitor_by_name,(jack_client_t *client, const char *port_name, int onoff),(client, port_name, onoff))
 
 DECL_FUNCTION (int, jack_port_ensure_monitor,(jack_port_t *port, int onoff),(port, onoff))
 
 DECL_FUNCTION (int, jack_port_monitoring_input,(jack_port_t *port),(port))
 
 DECL_FUNCTION (int, jack_connect,(jack_client_t *client, const char *source_port, const char *destination_port),(client, source_port, destination_port))
 
 DECL_FUNCTION (int, jack_disconnect,(jack_client_t *client, const char *source_port, const char *destination_port),(client, source_port, destination_port))
 
 DECL_FUNCTION (int, jack_port_disconnect,(jack_client_t *client, jack_port_t *port),(client, port))
 
 DECL_FUNCTION (int, jack_port_name_size,(),())
 
 DECL_FUNCTION (int, jack_port_type_size,(),())
 
 DECL_FUNCTION (jack_nframes_t, jack_get_sample_rate,(jack_client_t *client),(client))
 
 DECL_FUNCTION (jack_nframes_t, jack_get_buffer_size,(jack_client_t *client),(client))
 
 DECL_FUNCTION_NULL (const char **, jack_get_ports,(jack_client_t *client, const char *port_name_pattern, const char *type_name_pattern, unsigned long flags),(client, port_name_pattern, type_name_pattern, flags))
 
 DECL_FUNCTION_NULL (jack_port_t *, jack_port_by_name,(jack_client_t *client, const char *port_name),(client, port_name))
 
 DECL_FUNCTION_NULL (jack_port_t *, jack_port_by_id,(jack_client_t *client, jack_port_id_t port_id),(client, port_id))
 
 DECL_FUNCTION (int, jack_engine_takeover_timebase,(jack_client_t *client),(client))
 
 DECL_FUNCTION (jack_nframes_t, jack_frames_since_cycle_start,(const jack_client_t *client),(client))
 
 DECL_FUNCTION (jack_time_t, jack_get_time,(),())
 
 DECL_FUNCTION (jack_nframes_t, jack_time_to_frames,(const jack_client_t *client, jack_time_t time),(client, time))
 
 DECL_FUNCTION (jack_time_t, jack_frames_to_time,(const jack_client_t *client, jack_nframes_t frames),(client, frames))
 
 DECL_FUNCTION (jack_nframes_t, jack_frame_time,(const jack_client_t *client),(client))
 
 DECL_FUNCTION (jack_nframes_t, jack_last_frame_time,(const jack_client_t *client),(client))
 
 DECL_FUNCTION (float, jack_cpu_load,(jack_client_t *client),(client))
 
 DECL_FUNCTION_NULL (jack_native_thread_t, jack_client_thread_id,(jack_client_t *client),(client))
 
 DECL_VOID_FUNCTION (jack_set_error_function,(print_function fun),(fun))
 
 DECL_VOID_FUNCTION (jack_set_info_function,(print_function fun),(fun))
 
 DECL_FUNCTION (float, jack_get_max_delayed_usecs,(jack_client_t *client),(client))
 
 DECL_FUNCTION (float, jack_get_xrun_delayed_usecs,(jack_client_t *client),(client))
 
 DECL_VOID_FUNCTION (jack_reset_max_delayed_usecs,(jack_client_t *client),(client))
 
 DECL_FUNCTION (int, jack_release_timebase,(jack_client_t *client),(client))
 
 DECL_FUNCTION (int, jack_set_sync_callback,(jack_client_t *client, JackSyncCallback sync_callback, void *arg),(client, sync_callback, arg))
 
 DECL_FUNCTION (int, jack_set_sync_timeout,(jack_client_t *client, jack_time_t timeout),(client, timeout))
 
 DECL_FUNCTION (int, jack_set_timebase_callback,(jack_client_t *client, int conditional, JackTimebaseCallback timebase_callback, void *arg),(client, conditional, timebase_callback, arg))
 
 DECL_FUNCTION (int, jack_transport_locate,(jack_client_t *client, jack_nframes_t frame),(client, frame))
 
 DECL_FUNCTION (jack_transport_state_t, jack_transport_query,(const jack_client_t *client, jack_position_t *pos),(client, pos))
 
 DECL_FUNCTION (jack_nframes_t, jack_get_current_transport_frame,(const jack_client_t *client),(client))
 
 DECL_FUNCTION (int, jack_transport_reposition,(jack_client_t *client, const jack_position_t *pos),(client, pos))
 
 DECL_VOID_FUNCTION (jack_transport_start,(jack_client_t *client),(client))
 
 DECL_VOID_FUNCTION (jack_transport_stop,(jack_client_t *client),(client))
 
 DECL_FUNCTION (int, jack_client_real_time_priority,(jack_client_t *client),(client))
 
 DECL_FUNCTION (int, jack_client_max_real_time_priority,(jack_client_t *client),(client))
 
 DECL_FUNCTION (int, jack_acquire_real_time_scheduling,(jack_native_thread_t thread, int priority),(thread, priority))
 
 DECL_FUNCTION (int, jack_client_create_thread,(jack_client_t *client, jack_native_thread_t *thread, int priority, int realtime, thread_routine routine, void *arg),(client, thread, priority, realtime, routine, arg))
 
 DECL_FUNCTION (int, jack_drop_real_time_scheduling,(jack_native_thread_t thread),(thread))
 
 DECL_FUNCTION (int, jack_client_stop_thread,(jack_client_t *client, jack_native_thread_t thread),(client, thread))
 
 DECL_FUNCTION (int, jack_client_kill_thread,(jack_client_t *client, jack_native_thread_t thread),(client, thread))
 
 DECL_FUNCTION (char *, jack_get_internal_client_name,(jack_client_t *client, jack_intclient_t intclient),(client, intclient))
 
 DECL_FUNCTION (jack_intclient_t, jack_internal_client_handle,(jack_client_t *client, const char *client_name, jack_status_t *status),(client, client_name, status))
 
 DECL_FUNCTION (jack_status_t, jack_internal_client_unload,(jack_client_t *client, jack_intclient_t intclient),(client, intclient))
 
 DECL_VOID_FUNCTION (jack_free,(void *ptr),(ptr))
 
 DECL_FUNCTION (jack_nframes_t, jack_midi_get_event_count,(void *port_buffer),(port_buffer))
 
 DECL_FUNCTION (int, jack_midi_event_get,(jack_midi_event_t *event, void *port_buffer, jack_nframes_t event_index),(event, port_buffer, event_index))
 
 DECL_VOID_FUNCTION (jack_midi_clear_buffer,(void *port_buffer),(port_buffer))
 
 DECL_FUNCTION (size_t, jack_midi_max_event_size,(void *port_buffer),(port_buffer))
 
 DECL_FUNCTION_NULL (jack_midi_data_t *, jack_midi_event_reserve,(void *port_buffer, jack_nframes_t time, size_t data_size),(port_buffer, time, data_size))
 
 DECL_FUNCTION (int, jack_midi_event_write,(void *port_buffer, jack_nframes_t time, const jack_midi_data_t *data, size_t data_size),(port_buffer, time, data, data_size))
 
 DECL_FUNCTION (jack_nframes_t, jack_midi_get_lost_event_count,(void *port_buffer),(port_buffer))
 

Variables

int libjack_is_present = 0
 

Macro Definition Documentation

◆ DECL_FUNCTION

#define DECL_FUNCTION (   return_type,
  fn_name,
  arguments_types,
  arguments 
)
Value:
typedef return_type (*fn_name##_ptr_t)arguments_types; \
return_type fn_name arguments_types { \
static fn_name##_ptr_t fn = 0; \
if (fn == 0) { fn = (fn_name##_ptr_t)load_jack_function(#fn_name); } \
if (fn) return (*fn)arguments; \
else return (return_type)-1; \
}
void * load_jack_function(const char *fn_name)
Definition: jackweakapi.cpp:91

◆ DECL_FUNCTION_NULL

#define DECL_FUNCTION_NULL (   return_type,
  fn_name,
  arguments_types,
  arguments 
)
Value:
typedef return_type (*fn_name##_ptr_t)arguments_types; \
return_type fn_name arguments_types { \
static fn_name##_ptr_t fn = 0; \
if (fn == 0) { fn = (fn_name##_ptr_t)load_jack_function(#fn_name); } \
if (fn) return (*fn)arguments; \
else return (return_type)0; \
}
void * load_jack_function(const char *fn_name)
Definition: jackweakapi.cpp:91

◆ DECL_VOID_FUNCTION

#define DECL_VOID_FUNCTION (   fn_name,
  arguments_types,
  arguments 
)
Value:
typedef void (*fn_name##_ptr_t)arguments_types; \
void fn_name arguments_types { \
static fn_name##_ptr_t fn = 0; \
if (fn == 0) { fn = (fn_name##_ptr_t)load_jack_function(#fn_name); } \
if (fn) (*fn)arguments; \
}
void * load_jack_function(const char *fn_name)
Definition: jackweakapi.cpp:91

Typedef Documentation

◆ jack_native_thread_t

typedef pthread_t jack_native_thread_t

◆ print_function

typedef void(* print_function) (const char *)

◆ thread_routine

typedef void*(* thread_routine) (void *)

Function Documentation

◆ DECL_FUNCTION() [1/79]

DECL_FUNCTION ( int  ,
jack_client_close  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [2/79]

DECL_FUNCTION ( int  ,
jack_client_name_size  ,
()  ,
()   
)

◆ DECL_FUNCTION() [3/79]

DECL_FUNCTION ( int  ,
jack_internal_client_new  ,
(const char *client_name, const char *load_name, const char *load_init)  ,
(client_name, load_name, load_init)   
)

◆ DECL_FUNCTION() [4/79]

DECL_FUNCTION ( int  ,
jack_is_realtime  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [5/79]

DECL_FUNCTION ( int  ,
jack_set_process_callback  ,
(jack_client_t *client, JackProcessCallback process_callback, void *arg)  ,
(client, process_callback, arg)   
)

◆ DECL_FUNCTION() [6/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_thread_wait  ,
(jack_client_t *client, int status)  ,
(client, status)   
)

◆ DECL_FUNCTION() [7/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_cycle_wait  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [8/79]

DECL_FUNCTION ( int  ,
jack_set_thread_init_callback  ,
(jack_client_t *client, JackThreadInitCallback thread_init_callback, void *arg)  ,
(client, thread_init_callback, arg)   
)

◆ DECL_FUNCTION() [9/79]

DECL_FUNCTION ( int  ,
jack_set_freewheel_callback  ,
(jack_client_t *client, JackFreewheelCallback freewheel_callback, void *arg)  ,
(client, freewheel_callback, arg)   
)

◆ DECL_FUNCTION() [10/79]

DECL_FUNCTION ( int  ,
jack_set_freewheel  ,
(jack_client_t *client, int onoff)  ,
(client, onoff)   
)

◆ DECL_FUNCTION() [11/79]

DECL_FUNCTION ( int  ,
jack_set_buffer_size  ,
(jack_client_t *client, jack_nframes_t nframes)  ,
(client, nframes)   
)

◆ DECL_FUNCTION() [12/79]

DECL_FUNCTION ( int  ,
jack_set_buffer_size_callback  ,
(jack_client_t *client, JackBufferSizeCallback bufsize_callback, void *arg)  ,
(client, bufsize_callback, arg)   
)

◆ DECL_FUNCTION() [13/79]

DECL_FUNCTION ( int  ,
jack_set_sample_rate_callback  ,
(jack_client_t *client, JackSampleRateCallback srate_callback, void *arg)  ,
(client, srate_callback, arg)   
)

◆ DECL_FUNCTION() [14/79]

DECL_FUNCTION ( int  ,
jack_set_client_registration_callback  ,
(jack_client_t *client, JackClientRegistrationCallback registration_callback, void *arg)  ,
(client, registration_callback, arg)   
)

◆ DECL_FUNCTION() [15/79]

DECL_FUNCTION ( int  ,
jack_set_port_registration_callback  ,
(jack_client_t *client, JackPortRegistrationCallback registration_callback, void *arg)  ,
(client, registration_callback, arg)   
)

◆ DECL_FUNCTION() [16/79]

DECL_FUNCTION ( int  ,
jack_set_port_connect_callback  ,
(jack_client_t *client, JackPortConnectCallback connect_callback, void *arg)  ,
(client, connect_callback, arg)   
)

◆ DECL_FUNCTION() [17/79]

DECL_FUNCTION ( int  ,
jack_set_graph_order_callback  ,
(jack_client_t *client, JackGraphOrderCallback graph_callback, void *arg)  ,
(client, graph_callback, arg)   
)

◆ DECL_FUNCTION() [18/79]

DECL_FUNCTION ( int  ,
jack_set_xrun_callback  ,
(jack_client_t *client, JackXRunCallback xrun_callback, void *arg)  ,
(client, xrun_callback, arg)   
)

◆ DECL_FUNCTION() [19/79]

DECL_FUNCTION ( int  ,
jack_activate  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [20/79]

DECL_FUNCTION ( int  ,
jack_deactivate  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [21/79]

DECL_FUNCTION ( int  ,
jack_port_unregister  ,
(jack_client_t *client, jack_port_t *port)  ,
(client, port)   
)

◆ DECL_FUNCTION() [22/79]

DECL_FUNCTION ( int  ,
jack_port_flags  ,
(const jack_port_t *port)  ,
(port)   
)

◆ DECL_FUNCTION() [23/79]

DECL_FUNCTION ( int  ,
jack_port_is_mine  ,
(const jack_client_t *client, const jack_port_t *port)  ,
(client, port)   
)

◆ DECL_FUNCTION() [24/79]

DECL_FUNCTION ( int  ,
jack_port_connected  ,
(const jack_port_t *port)  ,
(port)   
)

◆ DECL_FUNCTION() [25/79]

DECL_FUNCTION ( int  ,
jack_port_connected_to  ,
(const jack_port_t *port, const char *port_name)  ,
(port, port_name)   
)

◆ DECL_FUNCTION() [26/79]

DECL_FUNCTION ( int  ,
jack_port_tie  ,
(jack_port_t *src, jack_port_t *dst)  ,
(src, dst)   
)

◆ DECL_FUNCTION() [27/79]

DECL_FUNCTION ( int  ,
jack_port_untie  ,
(jack_port_t *port)  ,
(port)   
)

◆ DECL_FUNCTION() [28/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_port_get_latency  ,
(jack_port_t *port)  ,
(port)   
)

◆ DECL_FUNCTION() [29/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_port_get_total_latency  ,
(jack_client_t *client, jack_port_t *port)  ,
(client, port)   
)

◆ DECL_FUNCTION() [30/79]

DECL_FUNCTION ( int  ,
jack_recompute_total_latency  ,
(jack_client_t *client, jack_port_t *port)  ,
(client, port)   
)

◆ DECL_FUNCTION() [31/79]

DECL_FUNCTION ( int  ,
jack_recompute_total_latencies  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [32/79]

DECL_FUNCTION ( int  ,
jack_port_set_name  ,
(jack_port_t *port, const char *port_name)  ,
(port, port_name)   
)

◆ DECL_FUNCTION() [33/79]

DECL_FUNCTION ( int  ,
jack_port_set_alias  ,
(jack_port_t *port, const char *alias)  ,
(port, alias)   
)

◆ DECL_FUNCTION() [34/79]

DECL_FUNCTION ( int  ,
jack_port_unset_alias  ,
(jack_port_t *port, const char *alias)  ,
(port, alias)   
)

◆ DECL_FUNCTION() [35/79]

DECL_FUNCTION ( int  ,
jack_port_get_aliases  ,
(const jack_port_t *port, char *const aliases[2])  ,
(port, aliases)   
)

◆ DECL_FUNCTION() [36/79]

DECL_FUNCTION ( int  ,
jack_port_request_monitor  ,
(jack_port_t *port, int onoff)  ,
(port, onoff)   
)

◆ DECL_FUNCTION() [37/79]

DECL_FUNCTION ( int  ,
jack_port_request_monitor_by_name  ,
(jack_client_t *client, const char *port_name, int onoff)  ,
(client, port_name, onoff)   
)

◆ DECL_FUNCTION() [38/79]

DECL_FUNCTION ( int  ,
jack_port_ensure_monitor  ,
(jack_port_t *port, int onoff)  ,
(port, onoff)   
)

◆ DECL_FUNCTION() [39/79]

DECL_FUNCTION ( int  ,
jack_port_monitoring_input  ,
(jack_port_t *port)  ,
(port)   
)

◆ DECL_FUNCTION() [40/79]

DECL_FUNCTION ( int  ,
jack_connect  ,
(jack_client_t *client, const char *source_port, const char *destination_port)  ,
(client, source_port, destination_port)   
)

◆ DECL_FUNCTION() [41/79]

DECL_FUNCTION ( int  ,
jack_disconnect  ,
(jack_client_t *client, const char *source_port, const char *destination_port)  ,
(client, source_port, destination_port)   
)

◆ DECL_FUNCTION() [42/79]

DECL_FUNCTION ( int  ,
jack_port_disconnect  ,
(jack_client_t *client, jack_port_t *port)  ,
(client, port)   
)

◆ DECL_FUNCTION() [43/79]

DECL_FUNCTION ( int  ,
jack_port_name_size  ,
()  ,
()   
)

◆ DECL_FUNCTION() [44/79]

DECL_FUNCTION ( int  ,
jack_port_type_size  ,
()  ,
()   
)

◆ DECL_FUNCTION() [45/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_get_sample_rate  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [46/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_get_buffer_size  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [47/79]

DECL_FUNCTION ( int  ,
jack_engine_takeover_timebase  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [48/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_frames_since_cycle_start  ,
(const jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [49/79]

DECL_FUNCTION ( jack_time_t  ,
jack_get_time  ,
()  ,
()   
)

◆ DECL_FUNCTION() [50/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_time_to_frames  ,
(const jack_client_t *client, jack_time_t time)  ,
(client, time)   
)

◆ DECL_FUNCTION() [51/79]

DECL_FUNCTION ( jack_time_t  ,
jack_frames_to_time  ,
(const jack_client_t *client, jack_nframes_t frames)  ,
(client, frames)   
)

◆ DECL_FUNCTION() [52/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_frame_time  ,
(const jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [53/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_last_frame_time  ,
(const jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [54/79]

DECL_FUNCTION ( float  ,
jack_cpu_load  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [55/79]

DECL_FUNCTION ( float  ,
jack_get_max_delayed_usecs  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [56/79]

DECL_FUNCTION ( float  ,
jack_get_xrun_delayed_usecs  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [57/79]

DECL_FUNCTION ( int  ,
jack_release_timebase  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [58/79]

DECL_FUNCTION ( int  ,
jack_set_sync_callback  ,
(jack_client_t *client, JackSyncCallback sync_callback, void *arg)  ,
(client, sync_callback, arg)   
)

◆ DECL_FUNCTION() [59/79]

DECL_FUNCTION ( int  ,
jack_set_sync_timeout  ,
(jack_client_t *client, jack_time_t timeout)  ,
(client, timeout)   
)

◆ DECL_FUNCTION() [60/79]

DECL_FUNCTION ( int  ,
jack_set_timebase_callback  ,
(jack_client_t *client, int conditional, JackTimebaseCallback timebase_callback, void *arg)  ,
(client, conditional, timebase_callback, arg)   
)

◆ DECL_FUNCTION() [61/79]

DECL_FUNCTION ( int  ,
jack_transport_locate  ,
(jack_client_t *client, jack_nframes_t frame)  ,
(client, frame)   
)

◆ DECL_FUNCTION() [62/79]

DECL_FUNCTION ( jack_transport_state_t  ,
jack_transport_query  ,
(const jack_client_t *client, jack_position_t *pos)  ,
(client, pos)   
)

◆ DECL_FUNCTION() [63/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_get_current_transport_frame  ,
(const jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [64/79]

DECL_FUNCTION ( int  ,
jack_transport_reposition  ,
(jack_client_t *client, const jack_position_t *pos)  ,
(client, pos)   
)

◆ DECL_FUNCTION() [65/79]

DECL_FUNCTION ( int  ,
jack_client_real_time_priority  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [66/79]

DECL_FUNCTION ( int  ,
jack_client_max_real_time_priority  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION() [67/79]

DECL_FUNCTION ( int  ,
jack_acquire_real_time_scheduling  ,
(jack_native_thread_t thread, int priority)  ,
(thread, priority)   
)

◆ DECL_FUNCTION() [68/79]

DECL_FUNCTION ( int  ,
jack_client_create_thread  ,
(jack_client_t *client, jack_native_thread_t *thread, int priority, int realtime, thread_routine routine, void *arg)  ,
(client, thread, priority, realtime, routine, arg)   
)

◆ DECL_FUNCTION() [69/79]

DECL_FUNCTION ( int  ,
jack_drop_real_time_scheduling  ,
(jack_native_thread_t thread)  ,
(thread)   
)

◆ DECL_FUNCTION() [70/79]

DECL_FUNCTION ( int  ,
jack_client_stop_thread  ,
(jack_client_t *client, jack_native_thread_t thread)  ,
(client, thread)   
)

◆ DECL_FUNCTION() [71/79]

DECL_FUNCTION ( int  ,
jack_client_kill_thread  ,
(jack_client_t *client, jack_native_thread_t thread)  ,
(client, thread)   
)

◆ DECL_FUNCTION() [72/79]

DECL_FUNCTION ( char *  ,
jack_get_internal_client_name  ,
(jack_client_t *client, jack_intclient_t intclient)  ,
(client, intclient)   
)

◆ DECL_FUNCTION() [73/79]

DECL_FUNCTION ( jack_intclient_t  ,
jack_internal_client_handle  ,
(jack_client_t *client, const char *client_name, jack_status_t *status)  ,
(client, client_name, status)   
)

◆ DECL_FUNCTION() [74/79]

DECL_FUNCTION ( jack_status_t  ,
jack_internal_client_unload  ,
(jack_client_t *client, jack_intclient_t intclient)  ,
(client, intclient)   
)

◆ DECL_FUNCTION() [75/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_midi_get_event_count  ,
(void *port_buffer)  ,
(port_buffer)   
)

◆ DECL_FUNCTION() [76/79]

DECL_FUNCTION ( int  ,
jack_midi_event_get  ,
(jack_midi_event_t *event, void *port_buffer, jack_nframes_t event_index)  ,
(event, port_buffer, event_index)   
)

◆ DECL_FUNCTION() [77/79]

DECL_FUNCTION ( size_t  ,
jack_midi_max_event_size  ,
(void *port_buffer)  ,
(port_buffer)   
)

◆ DECL_FUNCTION() [78/79]

DECL_FUNCTION ( int  ,
jack_midi_event_write  ,
(void *port_buffer, jack_nframes_t time, const jack_midi_data_t *data, size_t data_size)  ,
(port_buffer, time, data, data_size)   
)

◆ DECL_FUNCTION() [79/79]

DECL_FUNCTION ( jack_nframes_t  ,
jack_midi_get_lost_event_count  ,
(void *port_buffer)  ,
(port_buffer)   
)

◆ DECL_FUNCTION_NULL() [1/16]

DECL_FUNCTION_NULL ( const char *  ,
jack_get_version_string  ,
()  ,
()   
)

◆ DECL_FUNCTION_NULL() [2/16]

DECL_FUNCTION_NULL ( jack_client_t *  ,
jack_client_open  ,
(const char *client_name, jack_options_t options, jack_status_t *status,...)  ,
(client_name, options, status)   
)

◆ DECL_FUNCTION_NULL() [3/16]

DECL_FUNCTION_NULL ( jack_client_t *  ,
jack_client_new  ,
(const char *client_name)  ,
(client_name)   
)

◆ DECL_FUNCTION_NULL() [4/16]

DECL_FUNCTION_NULL ( char *  ,
jack_get_client_name  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION_NULL() [5/16]

DECL_FUNCTION_NULL ( jack_port_t *  ,
jack_port_register  ,
(jack_client_t *client, const char *port_name, const char *port_type, unsigned long flags, unsigned long buffer_size)  ,
(client, port_name, port_type, flags, buffer_size)   
)

◆ DECL_FUNCTION_NULL() [6/16]

DECL_FUNCTION_NULL ( void *  ,
jack_port_get_buffer  ,
(jack_port_t *port, jack_nframes_t nframes)  ,
(port, nframes)   
)

◆ DECL_FUNCTION_NULL() [7/16]

DECL_FUNCTION_NULL ( const char *  ,
jack_port_name  ,
(const jack_port_t *port)  ,
(port)   
)

◆ DECL_FUNCTION_NULL() [8/16]

DECL_FUNCTION_NULL ( const char *  ,
jack_port_short_name  ,
(const jack_port_t *port)  ,
(port)   
)

◆ DECL_FUNCTION_NULL() [9/16]

DECL_FUNCTION_NULL ( const char *  ,
jack_port_type  ,
(const jack_port_t *port)  ,
(port)   
)

◆ DECL_FUNCTION_NULL() [10/16]

DECL_FUNCTION_NULL ( const char **  ,
jack_port_get_connections  ,
(const jack_port_t *port)  ,
(port)   
)

◆ DECL_FUNCTION_NULL() [11/16]

DECL_FUNCTION_NULL ( const char **  ,
jack_port_get_all_connections  ,
(const jack_client_t *client, const jack_port_t *port)  ,
(client, port)   
)

◆ DECL_FUNCTION_NULL() [12/16]

DECL_FUNCTION_NULL ( const char **  ,
jack_get_ports  ,
(jack_client_t *client, const char *port_name_pattern, const char *type_name_pattern, unsigned long flags)  ,
(client, port_name_pattern, type_name_pattern, flags)   
)

◆ DECL_FUNCTION_NULL() [13/16]

DECL_FUNCTION_NULL ( jack_port_t *  ,
jack_port_by_name  ,
(jack_client_t *client, const char *port_name)  ,
(client, port_name)   
)

◆ DECL_FUNCTION_NULL() [14/16]

DECL_FUNCTION_NULL ( jack_port_t *  ,
jack_port_by_id  ,
(jack_client_t *client, jack_port_id_t port_id)  ,
(client, port_id)   
)

◆ DECL_FUNCTION_NULL() [15/16]

DECL_FUNCTION_NULL ( jack_native_thread_t  ,
jack_client_thread_id  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_FUNCTION_NULL() [16/16]

DECL_FUNCTION_NULL ( jack_midi_data_t *  ,
jack_midi_event_reserve  ,
(void *port_buffer, jack_nframes_t time, size_t data_size)  ,
(port_buffer, time, data_size)   
)

◆ DECL_VOID_FUNCTION() [1/11]

DECL_VOID_FUNCTION ( jack_get_version  ,
(int *major_ptr, int *minor_ptr, int *micro_ptr, int *proto_ptr)  ,
(major_ptr, minor_ptr, micro_ptr, proto_ptr)   
)

◆ DECL_VOID_FUNCTION() [2/11]

DECL_VOID_FUNCTION ( jack_internal_client_close  ,
(const char *client_name)  ,
(client_name)   
)

◆ DECL_VOID_FUNCTION() [3/11]

DECL_VOID_FUNCTION ( jack_cycle_signal  ,
(jack_client_t *client, int status)  ,
(client, status)   
)

◆ DECL_VOID_FUNCTION() [4/11]

DECL_VOID_FUNCTION ( jack_port_set_latency  ,
(jack_port_t *port, jack_nframes_t frames)  ,
(port, frames)   
)

◆ DECL_VOID_FUNCTION() [5/11]

DECL_VOID_FUNCTION ( jack_set_error_function  ,
(print_function fun)  ,
(fun)   
)

◆ DECL_VOID_FUNCTION() [6/11]

DECL_VOID_FUNCTION ( jack_set_info_function  ,
(print_function fun)  ,
(fun)   
)

◆ DECL_VOID_FUNCTION() [7/11]

DECL_VOID_FUNCTION ( jack_reset_max_delayed_usecs  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_VOID_FUNCTION() [8/11]

DECL_VOID_FUNCTION ( jack_transport_start  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_VOID_FUNCTION() [9/11]

DECL_VOID_FUNCTION ( jack_transport_stop  ,
(jack_client_t *client)  ,
(client)   
)

◆ DECL_VOID_FUNCTION() [10/11]

DECL_VOID_FUNCTION ( jack_free  ,
(void *ptr)  ,
(ptr)   
)

◆ DECL_VOID_FUNCTION() [11/11]

DECL_VOID_FUNCTION ( jack_midi_clear_buffer  ,
(void *port_buffer)  ,
(port_buffer)   
)

◆ load_jack_function()

void* load_jack_function ( const char *  fn_name)

Variable Documentation

◆ libjack_is_present

int libjack_is_present = 0