Re: [Jack-Devel] Proposal: JACK MIDI API extension for system exclusive messages

PrevNext  Index
DateFri, 01 Apr 2011 19:42:29 +0100
From Pedro Alves <[hidden] at gmail dot com>
To[hidden] at lists dot jackaudio dot org
In-Reply-ToDevin Anderson [Jack-Devel] Proposal: JACK MIDI API extension for system exclusive messages
Follow-UpPaul Davis Re: [Jack-Devel] Proposal: JACK MIDI API extension for system exclusive messages
Hi Devin,

On Thursday 31 March 2011 09:13:44, Devin Anderson wrote:
> Back in August, there was a discussion about implementing
> functionality to deal with large system exclusive MIDI message in
> JACK.  At the time, I proposed that the interface for
> 'jack_midi_event_t' could be changed like from:

I makes me very happy that you're addressing this.

> be necessary:
> 
>     /**
>      * Create a new MIDI blob in shared memory that can accomodate 'size'
>      * bytes.  Returns the blob on success, and NULL on failure.
>      */
> 
>     jack_midi_blob_t *
>     jack_midi_blob_create(jack_client_t *client, size_t size);

I still think that it's a fundamental design bug
to assume where the sysex's size is known in advance, and hence
that the blob can and should be created in one go.  Unless you were
planning on making that `size' be a hint and allowing
jack_midi_blob_write to grow the blob?

-- 
Pedro Alves
PrevNext  Index

1301683377.11097_0.ltw:2,a <201104011942.29887.alves.ped at gmail dot com>