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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Thursday, June 18, 2009 - 7:13 pm

On Thu, 18.06.09 14:49, Paul Davis (paul@linuxaudiosystems.com) wrote:

> > So, to map this to JACK, I would prefer if jack_cycle_wait() would

In PA's ALSA module we use snd_pcm_avail() for this: only if it is
below a certain threshold we process those private events. If it is
not, then we go back to IO directly, assuming that it is too risky
trying to dispatch another event.

On Jack we have jack_frames_since_cycle_start(), would it be
considered an ugly hack if I use that to implement a similar logic?

for (;;) {
n = jack_client_wait()
process(n);
jack_cycle_signal();
while (jack_frames_since_cycle_start() < threshold)
process_one_of_my_private_event();
}

Just ugly? Or *too* ugly? Is jack_frames_since_cycle_start() costly?

Lennart

--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] jack2's dbus name, Stéphane Letz, (Mon Jun 15, 9:05 am)
Re: [LAD] jack2's dbus name, Lennart Poettering, (Mon Jun 15, 12:59 pm)
Re: [LAD] jack2's dbus name, Stéphane Letz, (Mon Jun 15, 1:38 pm)
Re: [LAD] jack2's dbus name, Lennart Poettering, (Mon Jun 15, 2:37 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 4:21 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Nedko Arnaudov, (Fri Jun 19, 7:08 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Paul Davis, (Thu Jun 18, 5:52 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 6:46 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Paul Davis, (Thu Jun 18, 6:49 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 7:13 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Paul Davis, (Thu Jun 18, 9:41 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 10:34 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Fons Adriaensen, (Thu Jun 18, 11:28 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 11:44 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Stéphane Letz, (Fri Jun 19, 6:45 am)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Fri Jun 19, 1:00 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Fri Jun 19, 1:43 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Stéphane Letz, (Fri Jun 19, 2:03 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Fri Jun 19, 2:13 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Paul Davis, (Thu Jun 18, 11:57 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Fri Jun 19, 12:28 am)
Re: [LAD] [Jack-Devel] jack2's dbus name, Paul Davis, (Fri Jun 19, 2:39 am)
Re: [LAD] [Jack-Devel] jack2's dbus name, Jussi Laako, (Thu Jun 18, 5:12 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 7:00 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Jussi Laako, (Thu Jun 18, 8:28 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Florian Schirmer, (Thu Jun 18, 9:20 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Jussi Laako, (Thu Jun 18, 11:03 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 8:46 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Jussi Laako, (Thu Jun 18, 10:56 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 10:59 pm)
Re: [LAD] jack2's dbus name, Fernando Lopez-Lezcano, (Mon Jun 15, 5:16 pm)
Re: [LAD] jack2's dbus name, Lennart Poettering, (Mon Jun 15, 5:34 pm)
Re: [LAD] jack2's dbus name, Fernando Lopez-Lezcano, (Mon Jun 15, 6:37 pm)
Re: [LAD] jack2's dbus name, Lennart Poettering, (Mon Jun 15, 6:54 pm)
Re: [LAD] jack2's dbus name, alex stone, (Mon Jun 15, 6:36 pm)
Re: [LAD] jack2's dbus name, Jussi Laako, (Tue Jun 16, 6:19 pm)
Re: [LAD] jack2's dbus name, Stéphane Letz, (Mon Jun 15, 3:03 pm)