Re: [LAD] file and communications for RT audio

From: Fons Adriaensen <fons@email-addr-hidden>
Date: Fri May 14 2010 - 01:10:15 EEST

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 !
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri May 14 04:15:04 2010

This archive was generated by hypermail 2.1.8 : Fri May 14 2010 - 04:15:04 EEST