On Thu, May 13, 2010 at 05:27:33PM -0400, Stephen Sinclair wrote:
1) Have a secondary thread responsible for passing
data to the audio
callback through a wait-free ring buffer.
2) Read from a pipe, FIFO, or socket from another process (e.g.
popen), using select() or poll() to check when there is actually data
to read.
3) Read from a file, using select()?
4) The async I/O API.
5) Interprocess shared memory, presumably using a semaphore of some
kind. I guess this is similar to (1) but for inter-process
communication.
(1) is the correct way. (5) may work if the other process and
the way you talk to it are up to the task, that is if it just
emulates (1) with the sender being another process.
(2),(3),(4) are all real-time unsafe.
Ciao,
--
FA
O tu, che porte, correndo si ?
E guerra e morte !