Added tons of documentation headers to functions in source files.
This commit is contained in:
parent
0f04e056b2
commit
4eb2080933
43 changed files with 3953 additions and 43 deletions
|
|
@ -26,6 +26,14 @@ struct xtc_backend {
|
|||
int ready, running; /* Control thread only. */
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Decodes queued JACK MIDI and renders the instrument for the current audio block.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param position Absolute sample position at the start of the block.
|
||||
* @param frames Number of audio frames.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
static xtc_result render_midi(xtc_backend *backend, uint64_t position, jack_nframes_t frames)
|
||||
{
|
||||
xtc_midi_event events[XTC_MIDI_MAX_EVENTS];
|
||||
|
|
@ -70,6 +78,13 @@ static xtc_result render_midi(xtc_backend *backend, uint64_t position, jack_nfra
|
|||
(size_t)frames);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Runs the JACK audio callback, rendering sources, processing the graph, and publishing status.
|
||||
*
|
||||
* @param frames Number of audio frames.
|
||||
* @param context Opaque callback context.
|
||||
* @return Zero after publishing the callback result.
|
||||
*/
|
||||
static int process(jack_nframes_t frames, void *context)
|
||||
{
|
||||
xtc_backend *backend = context;
|
||||
|
|
@ -145,12 +160,25 @@ static int process(jack_nframes_t frames, void *context)
|
|||
return 0; /* Keep connected and silent on recoverable processing errors. */
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Marks server loss and clears running state when JACK shuts down.
|
||||
*
|
||||
* @param context Opaque callback context.
|
||||
*/
|
||||
static void shutdown_callback(void *context)
|
||||
{
|
||||
xtc_backend *backend = context;
|
||||
__atomic_store_n(&backend->lost, 1U, __ATOMIC_RELEASE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Requests a MIDI panic when a connection to the MIDI input changes.
|
||||
*
|
||||
* @param source JACK source port identifier.
|
||||
* @param destination JACK destination port identifier.
|
||||
* @param connected Nonzero when the ports became connected.
|
||||
* @param context Opaque callback context.
|
||||
*/
|
||||
static void port_connection(jack_port_id_t source, jack_port_id_t destination, int connected, void *context)
|
||||
{
|
||||
xtc_backend *backend = context;
|
||||
|
|
@ -159,6 +187,13 @@ static void port_connection(jack_port_id_t source, jack_port_id_t destination, i
|
|||
(void)__atomic_fetch_add(&backend->panic_requested, 1U, __ATOMIC_RELEASE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Records a JACK sample-rate change and disables processing until recovery.
|
||||
*
|
||||
* @param rate Sample rate in hertz.
|
||||
* @param context Opaque callback context.
|
||||
* @return Zero to acknowledge the rate notification.
|
||||
*/
|
||||
static int rate_callback(jack_nframes_t rate, void *context)
|
||||
{
|
||||
xtc_backend *backend = context;
|
||||
|
|
@ -168,6 +203,13 @@ static int rate_callback(jack_nframes_t rate, void *context)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Records the JACK buffer size and reports whether it exceeds the configured limit.
|
||||
*
|
||||
* @param frames Number of audio frames.
|
||||
* @param context Opaque callback context.
|
||||
* @return Zero if the buffer fits, nonzero if it exceeds the configured capacity.
|
||||
*/
|
||||
static int buffer_callback(jack_nframes_t frames, void *context)
|
||||
{
|
||||
xtc_backend *backend = context;
|
||||
|
|
@ -175,6 +217,12 @@ static int buffer_callback(jack_nframes_t frames, void *context)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Increments the xrun counter and requests a MIDI panic.
|
||||
*
|
||||
* @param context Opaque callback context.
|
||||
* @return Zero to acknowledge the xrun notification.
|
||||
*/
|
||||
static int xrun_callback(void *context)
|
||||
{
|
||||
xtc_backend *backend = context;
|
||||
|
|
@ -183,6 +231,13 @@ static int xrun_callback(void *context)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Opens a JACK client and registers its ports without starting the server or connecting routes.
|
||||
*
|
||||
* @param config Backend kind, client name, block capacity, and output channel configuration.
|
||||
* @param out_backend Receives the newly allocated backend; caller owns it on success.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_open(const xtc_backend_config *config, xtc_backend **out_backend)
|
||||
{
|
||||
xtc_backend *backend;
|
||||
|
|
@ -266,6 +321,12 @@ fail:
|
|||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Quiesces callbacks and releases the backend; failed cleanup leaves the handle owned by the caller.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_close(xtc_backend *backend)
|
||||
{
|
||||
if (backend == NULL)
|
||||
|
|
@ -282,6 +343,12 @@ xtc_result xtc_backend_close(xtc_backend *backend)
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Activates the backend and enables audio processing.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_start(xtc_backend *backend)
|
||||
{
|
||||
if (backend == NULL)
|
||||
|
|
@ -300,6 +367,12 @@ xtc_result xtc_backend_start(xtc_backend *backend)
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Deactivates the backend and establishes callback quiescence.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_stop(xtc_backend *backend)
|
||||
{
|
||||
if (backend == NULL)
|
||||
|
|
@ -318,6 +391,13 @@ xtc_result xtc_backend_stop(xtc_backend *backend)
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Changes the stopped backend's sample position and resets MIDI voices.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param sample Absolute sample position.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_seek(xtc_backend *backend, uint64_t sample)
|
||||
{
|
||||
if (backend == NULL || sample > UINT64_MAX - 65536U)
|
||||
|
|
@ -330,6 +410,13 @@ xtc_result xtc_backend_seek(xtc_backend *backend, uint64_t sample)
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Compiles and submits a graph while preserving the previous engine on failure.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param graph Graph model; borrowed for this call.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_submit(xtc_backend *backend, const xtc_graph *graph)
|
||||
{
|
||||
if (backend == NULL)
|
||||
|
|
@ -358,6 +445,13 @@ xtc_result xtc_backend_submit(xtc_backend *backend, const xtc_graph *graph)
|
|||
return xtc_realtime_submit(backend->engine, graph);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Preloads project audio and MIDI and submits its graph while stopped.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param project Project model; borrowed for this call.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_prepare_project(xtc_backend *backend, const xtc_project *project)
|
||||
{
|
||||
xtc_audio_plan *candidate = NULL;
|
||||
|
|
@ -384,6 +478,12 @@ xtc_result xtc_backend_prepare_project(xtc_backend *backend, const xtc_project *
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the first asset issue path, or an empty string when none is available.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @return Borrowed path string, or an empty string if no issue is available.
|
||||
*/
|
||||
const char *xtc_backend_asset_issue(const xtc_backend *backend)
|
||||
{
|
||||
const char *path = "";
|
||||
|
|
@ -392,6 +492,13 @@ const char *xtc_backend_asset_issue(const xtc_backend *backend)
|
|||
return path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Attaches or detaches a borrowed recorder while the backend is stopped.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param recorder Recorder handle.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_set_recorder(xtc_backend *backend, xtc_recorder *recorder)
|
||||
{
|
||||
if (!backend)
|
||||
|
|
@ -405,6 +512,12 @@ xtc_result xtc_backend_set_recorder(xtc_backend *backend, xtc_recorder *recorder
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Requests an instrument panic at the next audio block boundary.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_panic(xtc_backend *backend)
|
||||
{
|
||||
if (!backend)
|
||||
|
|
@ -417,6 +530,13 @@ xtc_result xtc_backend_panic(xtc_backend *backend)
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the borrowed name of the backend's MIDI input port.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param out Receives the newly allocated object; caller owns it on success.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_midi_port_name(const xtc_backend *backend, const char **out)
|
||||
{
|
||||
if (!backend || !out)
|
||||
|
|
@ -427,12 +547,24 @@ xtc_result xtc_backend_midi_port_name(const xtc_backend *backend, const char **o
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reclaims retired realtime plans on the control thread.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
*/
|
||||
void xtc_backend_collect(xtc_backend *backend)
|
||||
{
|
||||
if (backend != NULL)
|
||||
xtc_realtime_collect(backend->engine);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Copies individually coherent backend counters and transport state.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param out_status Receives the status.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_get_status(const xtc_backend *backend, xtc_backend_status *out_status)
|
||||
{
|
||||
xtc_realtime_status engine_status;
|
||||
|
|
@ -461,6 +593,14 @@ xtc_result xtc_backend_get_status(const xtc_backend *backend, xtc_backend_status
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the borrowed name of the mono input or primary output port.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param direction Local port direction.
|
||||
* @param out_name Receives the name.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_port_name(const xtc_backend *backend, xtc_port_direction direction, const char **out_name)
|
||||
{
|
||||
if (backend == NULL || out_name == NULL || (direction != XTC_PORT_INPUT && direction != XTC_PORT_OUTPUT))
|
||||
|
|
@ -471,6 +611,14 @@ xtc_result xtc_backend_port_name(const xtc_backend *backend, xtc_port_direction
|
|||
return *out_name == NULL ? XTC_ERR_IO : XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the borrowed name of an output channel port.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param channel Output channel index: 0 for primary, 1 for stereo right.
|
||||
* @param out Receives the newly allocated object; caller owns it on success.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_output_name(const xtc_backend *backend, size_t channel, const char **out)
|
||||
{
|
||||
if (!backend || !out || channel > 1)
|
||||
|
|
@ -483,6 +631,15 @@ xtc_result xtc_backend_output_name(const xtc_backend *backend, size_t channel, c
|
|||
return *out ? XTC_OK : XTC_ERR_IO;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Visits available audio ports matching the requested direction until the visitor stops.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param direction Local port direction.
|
||||
* @param visitor Visitor called with each borrowed port name.
|
||||
* @param context Opaque callback context.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_visit_ports(xtc_backend *backend, xtc_port_direction direction, xtc_backend_port_visitor visitor,
|
||||
void *context)
|
||||
{
|
||||
|
|
@ -503,6 +660,15 @@ xtc_result xtc_backend_visit_ports(xtc_backend *backend, xtc_port_direction dire
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Connects or disconnects a local audio port and a named remote port.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param direction Local port direction.
|
||||
* @param remote Borrowed remote port name.
|
||||
* @param disconnect Nonzero to disconnect, zero to connect.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
static xtc_result route(xtc_backend *backend, xtc_port_direction direction, const char *remote, int disconnect)
|
||||
{
|
||||
const char *own = NULL;
|
||||
|
|
@ -522,17 +688,41 @@ static xtc_result route(xtc_backend *backend, xtc_port_direction direction, cons
|
|||
return code == 0 || (!disconnect && code == EEXIST) ? XTC_OK : XTC_ERR_IO;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Connects this client's port to a remote port with the opposite direction.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param direction Local port direction.
|
||||
* @param remote Borrowed remote port name.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_connect(xtc_backend *backend, xtc_port_direction direction, const char *remote)
|
||||
{
|
||||
return route(backend, direction, remote, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Disconnects this client's port from a remote port.
|
||||
*
|
||||
* @param backend Backend handle.
|
||||
* @param direction Local port direction.
|
||||
* @param remote Borrowed remote port name.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_backend_disconnect(xtc_backend *backend, xtc_port_direction direction, const char *remote)
|
||||
{
|
||||
return route(backend, direction, remote, 1);
|
||||
}
|
||||
|
||||
#else
|
||||
/**
|
||||
* @brief Reports that output name is unavailable without JACK support.
|
||||
*
|
||||
* @param b Unused in this build.
|
||||
* @param c Unused in this build.
|
||||
* @param out Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_output_name(const xtc_backend *b, size_t c, const char **out)
|
||||
{
|
||||
(void)b;
|
||||
|
|
@ -541,12 +731,25 @@ xtc_result xtc_backend_output_name(const xtc_backend *b, size_t c, const char **
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that panic is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_panic(xtc_backend *backend)
|
||||
{
|
||||
(void)backend;
|
||||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that midi port name is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @param out Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_midi_port_name(const xtc_backend *backend, const char **out)
|
||||
{
|
||||
(void)backend;
|
||||
|
|
@ -554,6 +757,13 @@ xtc_result xtc_backend_midi_port_name(const xtc_backend *backend, const char **o
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that prepare project is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @param project Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_prepare_project(xtc_backend *backend, const xtc_project *project)
|
||||
{
|
||||
(void)backend;
|
||||
|
|
@ -561,12 +771,25 @@ xtc_result xtc_backend_prepare_project(xtc_backend *backend, const xtc_project *
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns an empty issue string in builds without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @return Borrowed empty static string.
|
||||
*/
|
||||
const char *xtc_backend_asset_issue(const xtc_backend *backend)
|
||||
{
|
||||
(void)backend;
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that set recorder is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @param recorder Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_set_recorder(xtc_backend *backend, xtc_recorder *recorder)
|
||||
{
|
||||
(void)backend;
|
||||
|
|
@ -574,6 +797,13 @@ xtc_result xtc_backend_set_recorder(xtc_backend *backend, xtc_recorder *recorder
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that seek is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @param sample Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_seek(xtc_backend *backend, uint64_t sample)
|
||||
{
|
||||
(void)backend;
|
||||
|
|
@ -582,6 +812,13 @@ xtc_result xtc_backend_seek(xtc_backend *backend, uint64_t sample)
|
|||
}
|
||||
|
||||
/* Keep core/offline builds available on machines without JACK headers. */
|
||||
/**
|
||||
* @brief Validates open arguments and reports that JACK support is unavailable.
|
||||
*
|
||||
* @param config Configuration to check; must not be NULL.
|
||||
* @param out_backend Receives NULL; must not be NULL.
|
||||
* @return XTC_ERR_INVALID_ARGUMENT for missing pointers, otherwise XTC_ERR_UNSUPPORTED; clears a supplied output handle.
|
||||
*/
|
||||
xtc_result xtc_backend_open(const xtc_backend_config *config, xtc_backend **out_backend)
|
||||
{
|
||||
if (out_backend == NULL)
|
||||
|
|
@ -592,23 +829,48 @@ xtc_result xtc_backend_open(const xtc_backend_config *config, xtc_backend **out_
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Accepts a NULL backend in builds without JACK support.
|
||||
*
|
||||
* @param backend Handle to close; NULL is accepted.
|
||||
* @return XTC_OK for NULL, otherwise XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_close(xtc_backend *backend)
|
||||
{
|
||||
return backend == NULL ? XTC_OK : XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that start is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_start(xtc_backend *backend)
|
||||
{
|
||||
(void)backend;
|
||||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that stop is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_stop(xtc_backend *backend)
|
||||
{
|
||||
(void)backend;
|
||||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that submit is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @param graph Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_submit(xtc_backend *backend, const xtc_graph *graph)
|
||||
{
|
||||
(void)backend;
|
||||
|
|
@ -616,11 +878,23 @@ xtc_result xtc_backend_submit(xtc_backend *backend, const xtc_graph *graph)
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Performs no collection in builds without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
*/
|
||||
void xtc_backend_collect(xtc_backend *backend)
|
||||
{
|
||||
(void)backend;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that get status is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @param out_status Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_get_status(const xtc_backend *backend, xtc_backend_status *out_status)
|
||||
{
|
||||
(void)backend;
|
||||
|
|
@ -628,6 +902,14 @@ xtc_result xtc_backend_get_status(const xtc_backend *backend, xtc_backend_status
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that port name is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @param direction Unused in this build.
|
||||
* @param out_name Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_port_name(const xtc_backend *backend, xtc_port_direction direction, const char **out_name)
|
||||
{
|
||||
(void)backend;
|
||||
|
|
@ -636,6 +918,15 @@ xtc_result xtc_backend_port_name(const xtc_backend *backend, xtc_port_direction
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that visit ports is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @param direction Unused in this build.
|
||||
* @param visitor Unused in this build.
|
||||
* @param context Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_visit_ports(xtc_backend *backend, xtc_port_direction direction, xtc_backend_port_visitor visitor,
|
||||
void *context)
|
||||
{
|
||||
|
|
@ -646,6 +937,14 @@ xtc_result xtc_backend_visit_ports(xtc_backend *backend, xtc_port_direction dire
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that connect is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @param direction Unused in this build.
|
||||
* @param remote Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_connect(xtc_backend *backend, xtc_port_direction direction, const char *remote)
|
||||
{
|
||||
(void)backend;
|
||||
|
|
@ -654,6 +953,14 @@ xtc_result xtc_backend_connect(xtc_backend *backend, xtc_port_direction directio
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reports that disconnect is unavailable without JACK support.
|
||||
*
|
||||
* @param backend Unused in this build.
|
||||
* @param direction Unused in this build.
|
||||
* @param remote Unused in this build.
|
||||
* @return XTC_ERR_UNSUPPORTED.
|
||||
*/
|
||||
xtc_result xtc_backend_disconnect(xtc_backend *backend, xtc_port_direction direction, const char *remote)
|
||||
{
|
||||
(void)backend;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue