Re: [LAD] jack_ringbuffer or port_buffer ?

From: hermann meyer <brummer-@web.de>
Date: Mon May 18 2009 - 16:31:00 EEST

Am Montag, den 18.05.2009, 08:27 -0400 schrieb Paul Davis:
> On Mon, May 18, 2009 at 3:52 AM, hermann meyer <brummer-@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 ?

thanks
          hermann

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Mon May 18 20:15:01 2009

This archive was generated by hypermail 2.1.8 : Mon May 18 2009 - 20:15:01 EEST