[tests] add run_on_default_source_and_sink helper
[aubio.git] / examples / jackio.h
index dcb6fb2..74803c7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2003-2009 Paul Brossier <piem@aubio.org>
+  Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
 
   This file is part of aubio.
 
 #ifndef JACKIO_H
 #define JACKIO_H
 
-/** 
+/**
  * @file
  *
  * Jack driver for aubio
- * 
+ *
  */
 
 #ifdef __cplusplus
@@ -39,18 +39,19 @@ extern "C"
 
 /** jack object */
 typedef struct _aubio_jack_t aubio_jack_t;
-/** jack process function */
-typedef int (*aubio_process_func_t) (smpl_t ** input,
-    smpl_t ** output, int nframes);
 
 /** jack device creation function */
-aubio_jack_t *new_aubio_jack (uint_t inchannels, uint_t outchannels,
-    uint_t imidichan, uint_t omidichan,
-    aubio_process_func_t callback);
+aubio_jack_t *new_aubio_jack (uint_t hop_size,
+    uint_t inchannels, uint_t outchannels,
+    uint_t imidichan, uint_t omidichan);
 /** activate jack client (run jackprocess function) */
-uint_t aubio_jack_activate (aubio_jack_t * jack_setup);
+uint_t aubio_jack_activate (aubio_jack_t * jack_setup,
+    aubio_process_func_t callback);
 /** close and delete jack client */
 void aubio_jack_close (aubio_jack_t * jack_setup);
+void del_aubio_jack (aubio_jack_t * jack_setup);
+/** get samplerate */
+uint_t aubio_jack_get_samplerate (aubio_jack_t * jack_setup);
 
 /** write a jack_midi_event_t to the midi output ringbuffer */
 void aubio_jack_midi_event_write (aubio_jack_t * jack_setup,