![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <cassert>#include <cerrno>#include <cstring>#include <jack/jack.h>#include <stdio.h>#include <stdlib.h>#include "compat/dlfunc.h"#include "debug.h"#include "types.h"#include "utils/macros.h"

Go to the source code of this file.
Classes | |
| struct | libjack_connection |
Macros | |
| #define | JACK_DLSYM(sym) |
| #define | MOD_NAME "[jack_common] " |
Typedefs | |
| typedef int(* | jack_activate_t) (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
| typedef int(* | jack_client_close_t) (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
| typedef jack_client_t *(* | jack_client_open_t) (const char *client_name, jack_options_t options, jack_status_t *status,...) JACK_OPTIONAL_WEAK_EXPORT |
| typedef int(* | jack_connect_t) (jack_client_t *client, const char *source_port, const char *destination_port) JACK_OPTIONAL_WEAK_EXPORT |
| typedef int(* | jack_deactivate_t) (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
| typedef int(* | jack_disconnect_t) (jack_client_t *client, const char *source_port, const char *destination_port) JACK_OPTIONAL_WEAK_EXPORT |
| typedef void(* | jack_free_t) (void *ptr) JACK_OPTIONAL_WEAK_EXPORT |
| typedef const char **(* | jack_get_ports_t) (jack_client_t *client, const char *port_name_pattern, const char *type_name_pattern, unsigned long flags) JACK_OPTIONAL_WEAK_EXPORT |
| typedef jack_nframes_t(* | jack_get_sample_rate_t) (jack_client_t *) JACK_OPTIONAL_WEAK_EXPORT |
| typedef void *(* | jack_port_get_buffer_t) (jack_port_t *port, jack_nframes_t) JACK_OPTIONAL_WEAK_EXPORT |
| typedef const char *(* | jack_port_name_t) (const jack_port_t *port) JACK_OPTIONAL_WEAK_EXPORT |
| typedef jack_port_t *(* | jack_port_register_t) (jack_client_t *client, const char *port_name, const char *port_type, unsigned long flags, unsigned long buffer_size) JACK_OPTIONAL_WEAK_EXPORT |
| typedef int(* | jack_set_process_callback_t) (jack_client_t *client, JackProcessCallback process_callback, void *arg) JACK_OPTIONAL_WEAK_EXPORT |
| typedef int(* | jack_set_sample_rate_callback_t) (jack_client_t *client, JackSampleRateCallback srate_callback, void *arg) JACK_OPTIONAL_WEAK_EXPORT |
Functions | |
| static struct device_info * | audio_jack_probe (const char *client_name, unsigned long port_flags, int *count) |
| static void | close_libjack (struct libjack_connection *s) |
| static bool | load_jack_symbols (struct libjack_connection *s) |
| static struct libjack_connection * | open_libjack (void) |
Definition in file jack_common.h.
| #define JACK_DLSYM | ( | sym | ) |
Definition at line 135 of file jack_common.h.
Referenced by load_jack_symbols().
| #define MOD_NAME "[jack_common] " |
Definition at line 67 of file jack_common.h.
| typedef int(* jack_activate_t) (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 69 of file jack_common.h.
| typedef int(* jack_client_close_t) (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 70 of file jack_common.h.
| typedef jack_client_t *(* jack_client_open_t) (const char *client_name, jack_options_t options, jack_status_t *status,...) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 71 of file jack_common.h.
| typedef int(* jack_connect_t) (jack_client_t *client, const char *source_port, const char *destination_port) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 74 of file jack_common.h.
| typedef int(* jack_deactivate_t) (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 77 of file jack_common.h.
| typedef int(* jack_disconnect_t) (jack_client_t *client, const char *source_port, const char *destination_port) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 78 of file jack_common.h.
| typedef void(* jack_free_t) (void *ptr) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 81 of file jack_common.h.
| typedef const char **(* jack_get_ports_t) (jack_client_t *client, const char *port_name_pattern, const char *type_name_pattern, unsigned long flags) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 82 of file jack_common.h.
| typedef jack_nframes_t(* jack_get_sample_rate_t) (jack_client_t *) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 86 of file jack_common.h.
| typedef void *(* jack_port_get_buffer_t) (jack_port_t *port, jack_nframes_t) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 87 of file jack_common.h.
| typedef const char *(* jack_port_name_t) (const jack_port_t *port) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 88 of file jack_common.h.
| typedef jack_port_t *(* jack_port_register_t) (jack_client_t *client, const char *port_name, const char *port_type, unsigned long flags, unsigned long buffer_size) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 89 of file jack_common.h.
| typedef int(* jack_set_process_callback_t) (jack_client_t *client, JackProcessCallback process_callback, void *arg) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 94 of file jack_common.h.
| typedef int(* jack_set_sample_rate_callback_t) (jack_client_t *client, JackSampleRateCallback srate_callback, void *arg) JACK_OPTIONAL_WEAK_EXPORT |
Definition at line 97 of file jack_common.h.
|
inlinestatic |
Definition at line 213 of file jack_common.h.
References libjack_connection::client_close, close_libjack(), count, device_info::dev, libjack_connection::free, libjack_connection::libjack, LOG_LEVEL_ERROR, log_msg(), name, and open_libjack().
Referenced by audio_cap_jack_help(), audio_cap_jack_probe(), audio_play_jack_help(), and audio_play_jack_probe().

|
static |
Definition at line 120 of file jack_common.h.
References libjack_connection::libjack.
Referenced by audio_cap_jack_done(), audio_cap_jack_init(), audio_jack_probe(), audio_play_jack_done(), audio_play_jack_init(), jack_start(), and open_libjack().
|
static |
Definition at line 137 of file jack_common.h.
References JACK_DLSYM.
Referenced by open_libjack().
|
static |
Definition at line 156 of file jack_common.h.
References close_libjack(), libjack_connection::free, libjack_connection::libjack, load_jack_symbols(), LOG_LEVEL_ERROR, LOG_LEVEL_VERBOSE, log_msg(), MAX_PATH_SIZE, MSG, and STR_LEN.
Referenced by audio_cap_jack_init(), audio_jack_probe(), audio_play_jack_init(), and jack_start().
