Re: File descriptors and Sound

Rui Sousa (rsousa@grad.physics.sunysb.edu)
Mon, 09 Aug 1999 15:57:08 +0100


Alan Cox wrote:
>
> > If the device is full-duplex how can I have one application
> > reading it and another writing?
>
> You either do file handle passing (funky) or normally one program runs the
> other: ie
>
> open file
> fork()
>
> child:
> exec other app (which inherits file)
> exit
>
> parent:
> run code

As I said before I'm trying to get speakfreely to work in full-duplex
mode.
This program has two components (two independent processes) that try to
access /dev/audio. The thing is that during execution they open/close
/dev/audio multiple times so I think that the second method wont work
(correct me if I am wrong).

Can you indicate me some (online) documentation concerning file handle
passing?

Thanks

-- 
Rui Sousa

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/