source: ext/jackio.h @ c85c8b6

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since c85c8b6 was c201306, checked in by Paul Brossier <piem@piem.org>, 15 years ago

ext/jackio.{c,h}: add midi_out_ring for midi output event processing

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2  Copyright (C) 2003-2009 Paul Brossier <piem@aubio.org>
3
4  This file is part of aubio.
5
6  aubio is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10
11  aubio is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  GNU General Public License for more details.
15
16  You should have received a copy of the GNU General Public License
17  along with aubio.  If not, see <http://www.gnu.org/licenses/>.
18
19*/
20
21#ifndef JACKIO_H
22#define JACKIO_H
23
24/**
25 * @file
26 *
27 * Jack driver for aubio
28 *
29 */
30
31#ifdef __cplusplus
32extern "C"
33{
34#endif
35
36#include <jack/jack.h>
37#include <jack/midiport.h>
38#include <jack/ringbuffer.h>
39
40/** jack object */
41typedef struct _aubio_jack_t aubio_jack_t;
42/** jack process function */
43typedef int (*aubio_process_func_t) (smpl_t ** input,
44    smpl_t ** output, int nframes);
45
46/** jack device creation function */
47aubio_jack_t *new_aubio_jack (uint_t inchannels, uint_t outchannels,
48    uint_t imidichan, uint_t omidichan,
49    aubio_process_func_t callback);
50/** activate jack client (run jackprocess function) */
51uint_t aubio_jack_activate (aubio_jack_t * jack_setup);
52/** close and delete jack client */
53void aubio_jack_close (aubio_jack_t * jack_setup);
54
55/** write a jack_midi_event_t to the midi output ringbuffer */
56void aubio_jack_midi_event_write (aubio_jack_t * jack_setup,
57    jack_midi_event_t * event);
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif                          /* JACKIO_H */
Note: See TracBrowser for help on using the repository browser.