From: Stas Sergeev <stsp@list.ru>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@alsa-project.org, nemesis@icequake.net
Subject: Re: rawmidi virtual and long sysexes
Date: Tue, 22 Dec 2015 23:23:16 +0300 [thread overview]
Message-ID: <5679B134.1000903@list.ru> (raw)
In-Reply-To: <20151222181147.GL28165@localhost.localdomain>
On Tue, Dec 22, 2015 at 06:51:47AM +0100, Clemens Ladisch wrote:
>> Ryan C. Underwood wrote:
>>> 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.
>> All sequencer clients have such a limit.
Clemens, could you please clarify what did you mean in this message:
http://mailman.alsa-project.org/pipermail/alsa-devel/2015-March/088852.html
Didn't you mean the limit is 4096?
> Handling split messages cannot be avoided; the API is not
> capable of sending arbitrarily large messages.
We are having this problem with munt, and for munt the
largest sysex it can parse, is AFAIK around 300 bytes.
It doesn't need the arbitrary large messages, because they
are illegal for it. It should better have them dropped entirely.
IMHO it would be nice to have the default buffer size large
anough to avoid the fragmentation for all practical cases,
leaving the fragmentation capability only for the pathological/
theoretical cases.
4096 is enough for this. 1024 is enough. 256 is obviously
not. So IMHO it would be nice to just enlarge the default
and save people from the troubles they actually really do
not need to take. I mean, even the 1-byte buffer will work,
but is it sane? pipes etc have >=4096 bytes AFAIK, so it
is obviously not a problem for kernel to allow just that.
So the question is very simple: why not?
prev parent reply other threads:[~2015-12-22 20:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5679B134.1000903@list.ru \
--to=stsp@list.ru \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
--cc=nemesis@icequake.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.