Jack2 1.9.14
|
Modules | |
The non-callback API | |
Functions | |
jack_client_t * | jack_client_open (const char *client_name, jack_options_t options, jack_status_t *status,...) JACK_OPTIONAL_WEAK_EXPORT |
jack_client_t * | jack_client_new (const char *client_name) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT |
int | jack_client_close (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
int | jack_client_name_size (void) JACK_OPTIONAL_WEAK_EXPORT |
char * | jack_get_client_name (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
char * | jack_get_uuid_for_client_name (jack_client_t *client, const char *client_name) JACK_WEAK_EXPORT |
char * | jack_get_client_name_by_uuid (jack_client_t *client, const char *client_uuid) JACK_WEAK_EXPORT |
int | jack_internal_client_new (const char *client_name, const char *load_name, const char *load_init) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT |
void | jack_internal_client_close (const char *client_name) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT |
int | jack_activate (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
int | jack_deactivate (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
int | jack_get_client_pid (const char *name) JACK_OPTIONAL_WEAK_EXPORT |
jack_native_thread_t | jack_client_thread_id (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
int | jack_is_realtime (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
jack_client_t * jack_client_open | ( | const char * | client_name, |
jack_options_t | options, | ||
jack_status_t * | status, | ||
... | |||
) |
Open an external client session with a JACK server. This interface is more complex but more powerful than jack_client_new(). With it, clients may choose which of several servers to connect, and control whether and how to start the server automatically, if it was not already running. There is also an option for JACK to generate a unique client name, when necessary.
client_name | of at most jack_client_name_size() characters. The name scope is local to each server. Unless forbidden by the JackUseExactName option, the server will modify this name to create a unique variant, if needed. |
options | formed by OR-ing together JackOptions bits. Only the JackOpenOptions bits are allowed. |
status | (if non-NULL) an address for JACK to return information from the open operation. This status word is formed by OR-ing together the relevant JackStatus bits. |
Optional parameters: depending on corresponding [options bits] additional parameters may follow status (in this order).
jack_client_t * jack_client_new | ( | const char * | client_name | ) |
\bold THIS FUNCTION IS DEPRECATED AND SHOULD NOT BE USED IN NEW JACK CLIENTS
int jack_client_close | ( | jack_client_t * | client | ) |
Disconnects an external client from a JACK server.
int jack_client_name_size | ( | void | ) |
char * jack_get_client_name | ( | jack_client_t * | client | ) |
char * jack_get_uuid_for_client_name | ( | jack_client_t * | client, |
const char * | client_name | ||
) |
Get the session ID for a client name.
The session manager needs this to reassociate a client name to the session_id.
The caller is responsible for calling jack_free(3) on any non-NULL returned value.
char * jack_get_client_name_by_uuid | ( | jack_client_t * | client, |
const char * | client_uuid | ||
) |
Get the client name for a session_id.
In order to snapshot the graph connections, the session manager needs to map session_ids to client names.
The caller is responsible for calling jack_free(3) on any non-NULL returned value.
int jack_internal_client_new | ( | const char * | client_name, |
const char * | load_name, | ||
const char * | load_init | ||
) |
Load an internal client into the Jack server.
Internal clients run inside the JACK server process. They can use most of the same functions as external clients. Each internal client must declare jack_initialize() and jack_finish() entry points, called at load and unload times. See inprocess.c for an example of how to write an internal client.
client_name | of at most jack_client_name_size() characters. |
load_name | of a shared object file containing the code for the new client. |
load_init | an arbitrary string passed to the jack_initialize() routine of the new client (may be NULL). |
void jack_internal_client_close | ( | const char * | client_name | ) |
Remove an internal client from a JACK server.
int jack_activate | ( | jack_client_t * | client | ) |
Tell the Jack server that the program is ready to start processing audio.
int jack_deactivate | ( | jack_client_t * | client | ) |
Tell the Jack server to remove this client from the process graph. Also, disconnect all ports belonging to it, since inactive clients have no port connections.
int jack_get_client_pid | ( | const char * | name | ) |
jack_native_thread_t jack_client_thread_id | ( | jack_client_t * | client | ) |
int jack_is_realtime | ( | jack_client_t * | client | ) |
client | pointer to JACK client structure. |
Check if the JACK subsystem is running with -R (–realtime).