#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <jack/jack.h>
Enumerations | |
enum | { Init, Run, Exit } |
Functions | |
int | process (jack_nframes_t nframes, void *arg) |
void | jack_shutdown (void *arg) |
int | main (int argc, char *argv[]) |
Variables | |
jack_port_t * | input_port |
jack_port_t * | output_port |
jack_client_t * | client |
enum { ... } | client_state |
void jack_shutdown | ( | void * | arg | ) |
JACK calls this shutdown_callback if the server ever shuts down or decides to disconnect the client.
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References client, client_state, Exit, input_port, jack_activate(), jack_client_close(), jack_client_open(), jack_connect(), JACK_DEFAULT_AUDIO_TYPE, jack_get_client_name(), jack_get_ports(), jack_get_sample_rate(), jack_on_shutdown(), jack_port_name(), jack_port_register(), jack_set_process_callback(), jack_shutdown(), JackNameNotUnique, JackNullOption, JackPortIsInput, JackPortIsOutput, JackPortIsPhysical, JackServerFailed, JackServerName, JackServerStarted, output_port, and process().
int process | ( | jack_nframes_t | nframes, | |
void * | arg | |||
) |
The process callback for this JACK application is called in a special realtime thread once for each audio cycle.
This client follows a simple rule: when the JACK transport is running, copy the input port to the output. When it stops, exit.
References client, client_state, Exit, Init, input_port, jack_port_get_buffer(), jack_transport_query(), JackTransportRolling, JackTransportStopped, output_port, and Run.
Referenced by main().
enum { ... } client_state |