Date: Sat, 21 Jun 1997 14:56:31 +0200 From: Mark Murray <mark@grondar.za> To: John-Mark Gurney <gurney_j@resnet.uoregon.edu> Cc: Mark Murray <mark@grondar.za>, multimedia@FreeBSD.ORG Subject: Re: GUS PnP woes Message-ID: <199706211256.OAA09649@greenpeace.grondar.za>
next in thread | raw e-mail | index | archive | help
John-Mark Gurney wrote:
> > Two processes can't open /dev/audio. How should this work?
>
> see below, they can if one is a child of another...
>
> > Speak_freely has one process doing the reading and one doing the
> > writing. The one that starts second cannot get /dev/audio because it is
> > busy. This can be duplicated by going 'cat /dev/audio > /dev/audio'.
>
> so you simply do something like:
>
> int fd;
> fd=open("/dev/audio", O_RDWR);
> if(fork()) {
> handle one end;
> } else {
> handle the other;
> }
AAAHHH! Does this not therefore represent breakage of the original
FULL-DUPLEX model of /dev/audio (as required by eg. speak_freely)?
> really quite simple... and the seperate audio{0,1} was probably so you
> could simulate full duplex audio with two sound cards... one as audio0
> and the other as audio1...
OK. ATM, if I cat a .au file to /dev/audio1, my system panics with an
integer overflow. I dont know enough about what I am doing to tell
whether this is a real problem or pilot error.
M
--
Mark Murray
Join the anti-SPAM movement: http://www.cauce.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706211256.OAA09649>
