[alsa-devel] RawMIDI behaviour with MidiFace 4x4

Clemens Ladisch clemens at ladisch.de
Mon Mar 9 19:40:52 CET 2015


Ricard Wanderlof wrote:
> On Mon, 9 Mar 2015, Clemens Ladisch wrote:
>> If the data is larger than the RawMIDI buffer size (4096 bytes), the
>> sequencer does not wait (like snd_rawmidi_write() would do), but just
>> drops data.
>
> I have noted though, that when sending data with snd_seq_ev_set_sysex()
> that the ALSA lib internally copies the data to an internal, malloced
> buffer, so I always thought that it would take care of any amount of data
> from there, but apparently not then?

The sequencer was designed for real-time events.  When events are scheduled
to be sent later, there is no good mechanism to let the current buffer fill
level influence the timing of events, or to report errors back.


Regards,
Clemens


More information about the Alsa-devel mailing list