mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Added sequencer event <-> MIDI byte stream coder from the kernel space
This commit is contained in:
parent
867ad7b2bc
commit
e0acbbfef8
4 changed files with 479 additions and 3 deletions
|
|
@ -4,8 +4,8 @@ sysinclude_HEADERS = asoundlib.h
|
|||
# This is the order they will be concatenated into asoundlib.h!
|
||||
#
|
||||
header_files=header.h version.h global.h error.h control.h mixer.h pcm.h \
|
||||
rawmidi.h timer.h hwdep.h seq.h seqmid.h conv.h instr.h conf.h \
|
||||
footer.h
|
||||
rawmidi.h timer.h hwdep.h seq.h seqmid.h seq_midi_event.h \
|
||||
conv.h instr.h conf.h footer.h
|
||||
|
||||
noinst_HEADERS=$(header_files) search.h list.h aserver.h
|
||||
|
||||
|
|
|
|||
28
include/seq_midi_event.h
Normal file
28
include/seq_midi_event.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/****************************************************************************
|
||||
* *
|
||||
* Sequencer event <-> MIDI byte stream coder *
|
||||
* *
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct snd_midi_event snd_midi_event_t;
|
||||
|
||||
int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev);
|
||||
int snd_midi_event_resize_buffer(snd_midi_event_t *dev, int bufsize);
|
||||
void snd_midi_event_free(snd_midi_event_t *dev);
|
||||
void snd_midi_event_init(snd_midi_event_t *dev);
|
||||
void snd_midi_event_reset_encode(snd_midi_event_t *dev);
|
||||
void snd_midi_event_reset_decode(snd_midi_event_t *dev);
|
||||
/* encode from byte stream - return number of written bytes if success */
|
||||
long snd_midi_event_encode(snd_midi_event_t *dev, unsigned char *buf, long count, snd_seq_event_t *ev);
|
||||
int snd_midi_event_encode_byte(snd_midi_event_t *dev, int c, snd_seq_event_t *ev);
|
||||
/* decode from event to bytes - return number of written bytes if success */
|
||||
long snd_midi_event_decode(snd_midi_event_t *dev, unsigned char *buf, long count, snd_seq_event_t *ev);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue