From owner-freebsd-multimedia Fri Feb 23 12:12:46 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from smtpproxy1.mitre.org (mb-20-100.mitre.org [129.83.20.100]) by hub.freebsd.org (Postfix) with ESMTP id 9493637B4EC for ; Fri, 23 Feb 2001 12:12:40 -0800 (PST) (envelope-from jandrese@mitre.org) Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy1.mitre.org (8.9.3/8.9.3) with ESMTP id PAA04898 for ; Fri, 23 Feb 2001 15:12:36 -0500 (EST) Received: from mailsrv2.mitre.org (mailsrv2.mitre.org [129.83.221.17]) by smtpsrv1.mitre.org (8.9.3/8.9.3) with ESMTP id PAA23426 for ; Fri, 23 Feb 2001 15:12:35 -0500 (EST) Received: from mitre.org ([128.29.145.140]) by mailsrv2.mitre.org (Netscape Messaging Server 4.15) with ESMTP id G9884Y00.QYN; Fri, 23 Feb 2001 15:12:34 -0500 Message-ID: <3A96C450.D1229A37@mitre.org> Date: Fri, 23 Feb 2001 15:13:04 -0500 From: "Andresen,Jason R." X-Mailer: Mozilla 4.75 [en]C-20000818M (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Pete Weisz Cc: multimedia@FreeBSD.ORG Subject: Re: Full duplex /dev/dsp won't open for read References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Pete Weisz wrote: > > 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? Does recording work at all on your card? Try: cat /dev/dsp > foo.wav and see if it fails. If that fails you might try upgrading FreeBSD, some of the newer drivers work better than the older ones. If it worked once, but doesn't work anymore try checking to see if something is sitting on the audio device (perhaps a wedged recording application?) -- _ _ _ ___ ____ ___ ______________________________________ / \/ \ | ||_ _|| _ \|___| | Jason Andresen -- jandrese@mitre.org / /\/\ \ | | | | | |/ /|_|_ | Views expressed may not reflect those /_/ \_\|_| |_| |_|\_\|___| | of the Mitre Corporation. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message