jack_set_process_callback

Tell the Jack server to call @a process_callback whenever there is work be done, passing @a arg as the second argument.

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 malloc, free, printf, pthread_mutex_lock, sleep, wait, poll, select, pthread_join, pthread_cond_wait, etc, etc. See http://jackit.sourceforge.net/docs/design/design.html#SECTION00411000000000000000

for more information.

NOTE: this function cannot be called while the client is activated (after jack_activate has been called.)

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

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

Meta