Re: [LAD] Deciphering jack-smf-utils -- Jack MIDI stuff

From: M Donalies <ingeniousnebbish@email-addr-hidden>
Date: Mon Feb 18 2013 - 15:35:32 EET

On Sunday 17 February 2013 08:21:51 Paul Coccoli wrote:
> On Sat, Feb 16, 2013 at 10:33 PM, M Donalies <ingeniousnebbish@email-addr-hidden>
wrote:
> > process_callback() calls process_midi_output(), wherein we find:
> > port_buffer = jack_port_get_buffer(output_port, nframes);
> >
> > Why the nframes parameter? Is there a separate buffer area for each
> > frame?
>
> There's a separate buffer for each port.

Yes, and that's the output_port arg, but what's with nframes? Why isn't the
function simply: jack_port_get_buffer(output_port) ?

> > A little later in the same function we have:
> > last_frame_time = jack_last_frame_time(jack_client);
> >
> > Is this the time of the end of the last process cycle?
>
> Not sure about this one. The docs say: "the precise time at the start
> of the current process cycle" which should be the same time as the
> start of the current process cycle, I would think.

Oh, I get it. I was reading "last" as "previous" as in currentCycle - 1.

-- 
7:8
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Mon Feb 18 16:15:03 2013

This archive was generated by hypermail 2.1.8 : Mon Feb 18 2013 - 16:15:03 EET