Mercurial > hg > svcore
comparison plugin/api/alsa/seq_midi_event.h @ 0:da6937383da8
initial import
author | Chris Cannam |
---|---|
date | Tue, 10 Jan 2006 16:33:16 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:da6937383da8 |
---|---|
1 /* DSSI ALSA compatibility library | |
2 * | |
3 * This library provides for Mac OS X the ALSA snd_seq_event_t handling | |
4 * necessary to compile and run DSSI. It was extracted from alsa-lib 1.0.8. | |
5 */ | |
6 | |
7 /** | |
8 * \file <alsa/seq_midi_event.h> | |
9 * \brief Application interface library for the ALSA driver | |
10 * \author Jaroslav Kysela <perex@suse.cz> | |
11 * \author Abramo Bagnara <abramo@alsa-project.org> | |
12 * \author Takashi Iwai <tiwai@suse.de> | |
13 * \date 1998-2001 | |
14 * | |
15 * Application interface library for the ALSA driver | |
16 * | |
17 * | |
18 * This library is free software; you can redistribute it and/or modify | |
19 * it under the terms of the GNU Lesser General Public License as | |
20 * published by the Free Software Foundation; either version 2.1 of | |
21 * the License, or (at your option) any later version. | |
22 * | |
23 * This program is distributed in the hope that it will be useful, | |
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26 * GNU Lesser General Public License for more details. | |
27 * | |
28 * You should have received a copy of the GNU Lesser General Public | |
29 * License along with this library; if not, write to the Free Software | |
30 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
31 * | |
32 */ | |
33 | |
34 #ifndef __ALSA_SEQ_MIDI_EVENT_H | |
35 #define __ALSA_SEQ_MIDI_EVENT_H | |
36 | |
37 #ifdef __cplusplus | |
38 extern "C" { | |
39 #endif | |
40 | |
41 /** | |
42 * \defgroup MIDI_Event Sequencer event <-> MIDI byte stream coder | |
43 * \ingroup Sequencer | |
44 * Sequencer event <-> MIDI byte stream coder | |
45 * \{ | |
46 */ | |
47 | |
48 /** container for sequencer midi event parsers */ | |
49 typedef struct snd_midi_event snd_midi_event_t; | |
50 | |
51 int snd_midi_event_new(size_t bufsize, snd_midi_event_t **rdev); | |
52 /* int snd_midi_event_resize_buffer(snd_midi_event_t *dev, size_t bufsize); */ | |
53 void snd_midi_event_free(snd_midi_event_t *dev); | |
54 /* void snd_midi_event_init(snd_midi_event_t *dev); */ | |
55 void snd_midi_event_reset_encode(snd_midi_event_t *dev); | |
56 /* void snd_midi_event_reset_decode(snd_midi_event_t *dev); */ | |
57 /* void snd_midi_event_no_status(snd_midi_event_t *dev, int on); */ | |
58 /* encode from byte stream - return number of written bytes if success */ | |
59 long snd_midi_event_encode(snd_midi_event_t *dev, const unsigned char *buf, long count, snd_seq_event_t *ev); | |
60 int snd_midi_event_encode_byte(snd_midi_event_t *dev, int c, snd_seq_event_t *ev); | |
61 /* decode from event to bytes - return number of written bytes if success */ | |
62 /* long snd_midi_event_decode(snd_midi_event_t *dev, unsigned char *buf, long count, const snd_seq_event_t *ev); */ | |
63 | |
64 /** \} */ | |
65 | |
66 #ifdef __cplusplus | |
67 } | |
68 #endif | |
69 | |
70 #endif /* __ALSA_SEQ_MIDI_EVENT_H */ | |
71 |