2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Library General Public License
4 * as published by the Free Software Foundation; either version 2 of
5 * the License, or (at your option) any later version.
7 * This library is distributed in the hope that it will be useful, but
8 * WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Library General Public License for more details.
12 * You should have received a copy of the GNU Library General Public
13 * License along with this library; if not, write to the Free
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 /* this file orginally taken from :
19 * FluidSynth - A Software Synthesizer
20 * Copyright (C) 2003 Peter Hanappe and others.
28 #ifndef _AUBIO_MDRIVER_H
29 #define _AUBIO_MDRIVER_H
31 typedef void aubio_settings_t;
33 typedef int (*handle_midi_event_func_t)(void* data, aubio_midi_event_t* event);
35 /** aubio_midi_driver_t */
36 typedef struct _aubio_midi_driver_t aubio_midi_driver_t;
38 struct _aubio_midi_driver_t
41 handle_midi_event_func_t handler;
45 //aubio_midi_driver_t* new_aubio_midi_driver(aubio_settings_t* settings,
46 aubio_midi_driver_t* new_aubio_midi_driver(char * name,
47 handle_midi_event_func_t handler,
48 void* event_handler_data);
49 void del_aubio_midi_driver(aubio_midi_driver_t* driver);
50 void aubio_midi_driver_settings(aubio_settings_t* settings);
54 void aubio_midi_direct_output(aubio_midi_driver_t * dev, aubio_midi_event_t * event);
55 #endif /* HAVE_JACK */
57 #endif /* _AUBIO_AUDRIVER_H */