alsa_midi.h

00001 /*
00002  * Copyright (c) 2006 Dmitry S. Baikov
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00017  */
00018 
00019 #ifndef __jack_alsa_midi_h__
00020 #define __jack_alsa_midi_h__
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00026 typedef struct alsa_midi_t alsa_midi_t;
00027 struct alsa_midi_t {
00028         void (*destroy)(alsa_midi_t *amidi);
00029         int (*attach)(alsa_midi_t *amidi);
00030         int (*detach)(alsa_midi_t *amidi);
00031         int (*start)(alsa_midi_t *amidi);
00032         int (*stop)(alsa_midi_t *amidi);
00033         void (*read)(alsa_midi_t *amidi, jack_nframes_t nframes);
00034         void (*write)(alsa_midi_t *amidi, jack_nframes_t nframes);
00035 };
00036 
00037 alsa_midi_t* alsa_rawmidi_new(jack_client_t *jack);
00038 alsa_midi_t* alsa_seqmidi_new(jack_client_t *jack, const char* alsa_name);
00039 
00040 #ifdef __cplusplus
00041 } // extern "C"
00042 #endif
00043 
00044 #endif /* __jack_alsa_midi_h__ */

Generated on Thu Feb 14 11:16:01 2008 for Jackdmp by  doxygen 1.5.1