File: jackio.h

package info (click to toggle)
aubio 0.3.2-4.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,528 kB
  • sloc: ansic: 16,646; sh: 8,899; python: 2,767; makefile: 384
file content (52 lines) | stat: -rw-r--r-- 1,432 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
   Copyright (C) 2003 Paul Brossier

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

*/

#ifndef JACKIO_H
#define JACKIO_H

/** 
 * @file
 *
 * Jack driver for aubio
 * 
 */

#ifdef __cplusplus
extern "C" {
#endif

/** 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,
    aubio_process_func_t callback);
/** activate jack client (run jackprocess function) */
uint_t aubio_jack_activate(aubio_jack_t *jack_setup);
/** close and delete jack client */
void aubio_jack_close(aubio_jack_t *jack_setup);

#ifdef __cplusplus
}
#endif

#endif /* JACKIO_H */