[LAD] jack_ringbuffer or port_buffer ?

hermann meyer brummer- at web.de
Mon May 18 13:31:00 UTC 2009

Am Montag, den 18.05.2009, 08:27 -0400 schrieb Paul Davis:
> On Mon, May 18, 2009 at 3:52 AM, hermann meyer <brummer- at web.de> wrote:
> > Hi all
> >
> > I have a question about the useage from the jack_ringbuffer for midi
> > out_put. I'am unsure to use it or not ? Can someone tell me what is the
> > advance when I use it, in relation to write direct to the port_buffer ?
> they are totally unrelated.
> the port buffer is where you read/write data that you wish to
> collect/deliver to the rest of the JACK system.
> using a ringbuffer is an optional but useful approach when you need to
> make the data read/written during the process callback available
> to/generated by some other thread.

do I get it right, so, if there is no other thread then the
process_callback involved in the midi data collection,then there is no
need to use the ringbuffer ?

I talk about a audio2midi converter, it work nice with the
jack_ringbuffer, and also nice with the direct use from the port_buffer.
I try to figure out with on is best for this purpose, and didn't come to
a result. I think, the ringbuffer must use more CPU and mem, but I can`t
see it realy. 
So when I get you right, I have no need to use the ringbuffer here ?


More information about the Linux-audio-dev mailing list