All of lore.kernel.org
 help / color / mirror / Atom feed
* rawmidi virtual and long sysexes
@ 2015-12-19 23:31 Ryan C. Underwood
  2015-12-22  5:51 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Ryan C. Underwood @ 2015-12-19 23:31 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 879 bytes --]


Hi alsa-devel,

Recently I noticed this problem and fixed it in the client consuming
sequencer events:
https://github.com/munt/munt/commit/0ea0846d0849872acf4384bdf5edeff026d12f42

Basically, the rawmidi virtual plugin enforces a 256-byte limit on
events, and emits multiple events if e.g. a >256 byte sysex is
encountered.

This does not seem to be documented behavior for
snd_seq_event_input(), nor is the fixed limit described anywhere.

Would it be better if the maximum event size could be configured
through params?  That would avoid needing this clumsy workaround by
sequencer clients.  In any case, it seems that the documentation
should be updated to reflect the need to receive multiple sequencer
events to complete a sysex if EOX is not located in the first.

Please cc me as I'm not subscribed.

-- 
Ryan C. Underwood, <nemesis@icequake.net>

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 173 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-22 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-19 23:31 rawmidi virtual and long sysexes Ryan C. Underwood
2015-12-22  5:51 ` Clemens Ladisch
2015-12-22 18:11   ` Ryan C. Underwood
2015-12-22 20:23     ` Stas Sergeev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.