JACK-AUDIO-CONNECTION-KIT: The non-callback API

JACK-AUDIO-CONNECTION-KIT 0.125.0

Functions
The non-callback API

## Functions
jack_nframes_t | jack_thread_wait (jack_client_t *, int status) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT
jack_nframes_t | jack_cycle_wait (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT
void | jack_cycle_signal (jack_client_t *client, int status) JACK_OPTIONAL_WEAK_EXPORT
int | jack_set_process_thread (jack_client_t *client, JackThreadCallback fun, void *arg) JACK_OPTIONAL_WEAK_EXPORT

## Detailed Description

## Function Documentation

## ◆ jack_cycle_signal()

void jack_cycle_signal | ( | jack_client_t * | client,
|  | int | status
| ) |  |

Signal next clients in the graph.

Parameters

  client | - pointer to a JACK client structure
  status | - if non-zero, calling thread should exit

## ◆ jack_cycle_wait()

jack_nframes_t jack_cycle_wait | ( | jack_client_t * | client | ) |

Wait until this JACK client should process data.

Parameters

  client | - pointer to a JACK client structure

Returns
  the number of frames of data to process

## ◆ jack_set_process_thread()

int jack_set_process_thread | ( | jack_client_t * | client,
|  | JackThreadCallback | fun,
|  | void * | arg
| ) |  |

Tell the Jack server to call thread_callback in the RT thread. Typical use are in conjunction with jack_cycle_wait and @ jack_cycle_signal functions. The code in the supplied function must be suitable for real-time execution. That means that it cannot call functions that might block for a long time. This includes all I/O functions (disk, TTY, network), malloc, free, printf, pthread_mutex_lock, sleep, wait, poll, select, pthread_join, pthread_cond_wait, etc, etc.

Returns
  0 on success, otherwise a non-zero error code.

## ◆ jack_thread_wait()

jack_nframes_t jack_thread_wait | ( | jack_client_t * | ,
|  | int | status
| ) |  |

THIS FUNCTION IS DEPRECATED AND SHOULD NOT BE USED IN NEW JACK CLIENTS

It should be replace by use of @ jack_cycle_wait and @ jack_cycle_signal functions.