mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Fixed sysex event encoding
This commit is contained in:
parent
eca779d1d6
commit
8fa8c25f0b
1 changed files with 1 additions and 0 deletions
|
|
@ -337,6 +337,7 @@ int snd_midi_event_encode_byte(snd_midi_event_t *dev, int c, snd_seq_event_t *ev
|
||||||
dev->read >= dev->bufsize) {
|
dev->read >= dev->bufsize) {
|
||||||
ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK;
|
ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK;
|
||||||
ev->flags |= SNDRV_SEQ_EVENT_LENGTH_VARIABLE;
|
ev->flags |= SNDRV_SEQ_EVENT_LENGTH_VARIABLE;
|
||||||
|
ev->type = SNDRV_SEQ_EVENT_SYSEX;
|
||||||
ev->data.ext.len = dev->read;
|
ev->data.ext.len = dev->read;
|
||||||
ev->data.ext.ptr = dev->buf;
|
ev->data.ext.ptr = dev->buf;
|
||||||
if (c != MIDI_CMD_COMMON_SYSEX_END)
|
if (c != MIDI_CMD_COMMON_SYSEX_END)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue