-
+
CLIENT RESPONSIBILITIES
JACK-managed thread ("audio thread")
- executes
process
/xrun
/sample_rate
callbacks
- must be "real-time safe":
-
nycles = (A * nframes) + B
where A and B are constant
- no blocking calls
malloc
sleep
read/write/open/close
pthread_cond_wait
pthread_mutex_lock
Other Threads
- no audio I/O
- cannot block JACK thread
- should probably register a shutdown callback