From owner-freebsd-multimedia Sat Jun 21 06:01:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA28291 for multimedia-outgoing; Sat, 21 Jun 1997 06:01:57 -0700 (PDT) Received: from grunt.grondar.za (Hg/vWIxdd6AqWJHn5sUq2m9oLD6E5xiC@grunt.grondar.za [196.7.18.129]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA28080 for ; Sat, 21 Jun 1997 05:56:47 -0700 (PDT) Received: from greenpeace.grondar.za (greenpeace.grondar.za [196.7.18.132]) by grunt.grondar.za (8.8.5/8.8.5) with ESMTP id OAA17404; Sat, 21 Jun 1997 14:56:38 +0200 (SAT) Received: from greenpeace.grondar.za (localhost [127.0.0.1]) by greenpeace.grondar.za (8.8.5/8.8.5) with ESMTP id OAA09649; Sat, 21 Jun 1997 14:56:32 +0200 (SAT) Message-Id: <199706211256.OAA09649@greenpeace.grondar.za> X-Mailer: exmh version 2.0gamma 1/27/96 To: John-Mark Gurney cc: Mark Murray , multimedia@FreeBSD.ORG Subject: Re: GUS PnP woes Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 21 Jun 1997 14:56:31 +0200 From: Mark Murray Sender: owner-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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