[LAD] [Jack-Devel] jack2's dbus name

Paul Davis paul at linuxaudiosystems.com
Fri Jun 19 02:38:59 UTC 2009


On Thu, Jun 18, 2009 at 8:27 PM, Lennart Poettering<mzynq at 0pointer.de> wrote:
>
> But for MIDI time is critical. For my control events it is not. That's
> why I'd like to handle them after the _signal() invocation.

fair enough, but you definitely cannot use
jack_frames_since_cycle_start() there. there is no guarantee that you
will avoid retrograde values in return value - if you happen to
overshoot the start of the next cycle, the return value will go
backwards. as mentioned the functioned was designed under the
assumption that is only ever called within the process cycle, so using
it outside of it (even if from some perspective, it is still active)
is going to lead to potential errors. i still think you'd be better
off semop-ing another thread and letting it get on with the event
handling, and just head back into jack_cycle_wait().

--p



More information about the Linux-audio-dev mailing list