From owner-freebsd-multimedia Fri Feb 23 9:58:27 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from pw34.resnet.cornell.edu (pw34.resnet.cornell.edu [128.253.179.185]) by hub.freebsd.org (Postfix) with ESMTP id 53AD037B401 for ; Fri, 23 Feb 2001 09:58:25 -0800 (PST) (envelope-from pete@pw34.resnet.cornell.edu) Received: from localhost (pete@localhost) by pw34.resnet.cornell.edu (8.9.3/8.9.3) with ESMTP id NAA17658 for ; Fri, 23 Feb 2001 13:06:30 -0500 (EST) (envelope-from pete@pw34.resnet.cornell.edu) Date: Fri, 23 Feb 2001 13:06:30 -0500 (EST) From: Pete Weisz To: multimedia@FreeBSD.ORG Subject: Re: Full duplex /dev/dsp won't open for read In-Reply-To: <007101c09d50$fdf63710$0504020a@haveblue> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 23 Feb 2001, Cameron Grant wrote: > > What i'm getting stuck at is that /dev/dsp won't open for > > both reading for some reason > > show us the relevant bit of your code. > > -cg > - - - - - - - >8 - - - - - - - #include #include #include #include #define DSP_DEV "/dev/dspW0" int main(int argc, char* argv[]) { snd_chan_param chan; int caps, fd; if((fd=open(DSP_DEV, O_RDWR, 0)) == -1); fprintf(stderr, "Couldn't open audio device\n"); - - - - - - >8 - - - - - - - actually, it won't open for RD_ONLY either... It has permissions, etc, works for write... Is it necessary to turn something on before you open it for reading? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message