30 |
|
|
31 |
/* midi status */ |
/* midi status */ |
32 |
struct snd_midi_event_t { |
struct snd_midi_event_t { |
33 |
int qlen; /* queue length */ |
int qlen; /* queue length */ |
34 |
int read; /* chars read */ |
int read; /* chars read */ |
35 |
int type; /* current event type */ |
int type; /* current event type */ |
36 |
unsigned char lastcmd; |
unsigned char lastcmd; /* last command (for MIDI state handling) */ |
37 |
unsigned char nostat; |
unsigned char nostat; /* no state flag */ |
38 |
int bufsize; |
int bufsize; /* allocated buffer size */ |
39 |
unsigned char *buf; /* input buffer */ |
unsigned char *buf; /* input buffer */ |
40 |
spinlock_t lock; |
spinlock_t lock; |
41 |
}; |
}; |
42 |
|
|
|
#define SND_MIDI_EVENT_NOSTATUS (1<<0) /* don't encode MIDI status */ |
|
|
|
|
43 |
int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev); |
int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev); |
44 |
int snd_midi_event_resize_buffer(snd_midi_event_t *dev, int bufsize); |
int snd_midi_event_resize_buffer(snd_midi_event_t *dev, int bufsize); |
45 |
void snd_midi_event_free(snd_midi_event_t *dev); |
void snd_midi_event_free(snd_midi_event_t *dev); |