[linux-audio-dev] jack and alsa design issue

Hans Fugal hans at fugal.net
Sun Mar 20 15:56:59 UTC 2005


On Sat, 19 Mar 2005 at 11:35 -0500, Paul Davis wrote:
> >Sorry, the other thread idea is in order to avoid SIGIO. The thread
> >would select on the audio device and drain it into a ringbuffer for the
> >other thread to use.
> 
> s/select/poll/ => welcome to JACK :))
> 
> you really want to do all this work over again?

I want to do as little as possible. :-)

Part of the problem is that the non-audio thread goes to the network
which means blocking, which means I can't just do it all within
jack_process(). 

Thanks to all your comments and questions I think my head has cleared. I
will use a ringbuffer between jack_process() and the network thread, and
emulate that when using ALSA. Someday, when jack starts itself as
needed (as I understand is planned), I wouldn't need to support ALSA.

-- 
 .O.  Hans Fugal            | De gustibus non disputandum est.
 ..O  http://hans.fugal.net | Debian, vim, mutt, ruby, text, gpg
 OOO                        | WindowMaker, gaim, UTF-8, RISC, JS Bach
---------------------------------------------------------------------
GnuPG Fingerprint: 6940 87C5 6610 567F 1E95  CB5E FC98 E8CD E0AA D460
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20050320/dcaf1f74/attachment.pgp>


More information about the Linux-audio-dev mailing list