Re: [LAD] [ALPHA] ladspa.m.lv2 - Some questions :D

From: David Robillard <d@email-addr-hidden>
Date: Fri May 10 2013 - 00:16:42 EEST

On Thu, 2013-05-09 at 23:02 +0200, Florian Paul Schmidt wrote:
> On 05/09/2013 10:46 PM, David Robillard wrote:
> > (Sorry for the late reply, I don't monitor LAD very closely these days)
> >
> > You should be able to handle all the events in one loop.
> >
> > However here you seem to be iterating over all events *for every frame*?
> > That would cause a problem with loading since you'll issue a ton of
> > identical load requests, but it also probably isn't what you want for
> > MIDI either. You'll trigger everything repeatedly and the timing is
> > wrong. I think you need to unify your two loops here.
>
> Nope, I do not iterate over all events in every frame. Before iterating
> over the frames I get the first event and then on every frame I iterate
> over those events that have that frame time.. This is similar to how the
> jack_midi example code does it..

I see, I misread the code. I suppose that works if you need to iterate
over every frame for other reasons.

> I do use the worker extension. The only problem I saw was when I tried
> to integrate the patch_set messages in that same loop.

There shouldn't be a difference. Assuming that, in the integrated case,
you're scheduling the exact same work (easy enough to check) nothing
should be any different, unless something is wrong with the asynchronous
work stuff and some really fine timing problems are happening...
everything looks good though, the work stuff shouldn't be affected by /
affect state...

What kind of problem?

-dr

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Received on Fri May 10 00:15:04 2013

This archive was generated by hypermail 2.1.8 : Fri May 10 2013 - 00:15:04 EEST