1 /*(LGPL) 2 --------------------------------------------------------------------------- 3 a_midi.h - midi_socket_t MIDI Input Driver for OSS or ALSA 4 --------------------------------------------------------------------------- 5 * Copyright (C) 2001, David Olofson 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU Lesser General Public License as published by 9 * the Free Software Foundation; either version 2.1 of the License, or (at 10 * your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, but 13 * WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public License 18 * along with this program; if not, write to the Free Software Foundation, 19 * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 */ 21 22 #ifndef _A_MIDI_H_ 23 #define _A_MIDI_H_ 24 25 #include "a_midisock.h" 26 27 /* 28 * Define if you'd like to layer with 29 * an external synth or something... 30 */ 31 #undef MIDI_THRU 32 33 #define MIDIMAXBYTES 1024 34 35 36 int midi_open(midisock_t *output); 37 void midi_close(void); 38 39 void midi_process(void); 40 41 #endif /*_A_MIDI_H_*/ 42