On Thu, Jun 18, 2009 at 8:27 PM, Lennart Poettering<mz...@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 _______________________________________________ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev