[linux-audio-dev] laaga implementation news bite

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] laaga implementation news bite
From: Paul Davis (pbd_AT_Op.Net)
Date: Sat Jun 09 2001 - 21:05:14 EEST


i had a couple of hours today to work on the multiprocess
audioengine. its now doing its basic tasks of starting a server on a
socket, accepting new connections from clients, waking periodically
from poll(2), telling its clients to do some work, etc. note that i
short-circuited the design used by abramo, in that clients notify each
other when they are done instead of constantly switching back to the
engine. this is partly why i am using kill(2) instead of write(2) -
its easy to shuffle a set of PIDs to be signalled to match the
processing graph; getting each client to have an fd to talk to every
other client is far from trivial.

the engine has a watchdog timer to catch any instances of a client
dying in the middle of its process() call, so that we can recover from
it fairly easily in almost every case.

the remaining work now is in properly keeping track of which clients
are still alive, and port registration (this is slightly tricky since
it involves something a bit like malloc(), but using shared memory
segments in which the segment id will be an important part of the
returned address).

its small, compact, and i think fairly easy to understand. i will hope
to send it to the list in a couple of days.

--p


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Jun 10 2001 - 02:49:31 EEST