From owner-freebsd-questions Fri Oct 11 10: 2: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E134237B401 for ; Fri, 11 Oct 2002 10:02:07 -0700 (PDT) Received: from corten2.billschoolcraft.com (adsl-63-193-247-201.dsl.snfc21.pacbell.net [63.193.247.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C0A943E8A for ; Fri, 11 Oct 2002 10:02:07 -0700 (PDT) (envelope-from bill@wiliweld.com) Received: from corten8.billschoolcraft.com ([192.168.7.8] helo=localhost) by corten2.billschoolcraft.com with esmtp (Exim 3.22 #1 (Debian)) id 1803As-0002Fn-00 for ; Fri, 11 Oct 2002 10:02:06 -0700 Date: Fri, 11 Oct 2002 10:10:41 -0700 (PDT) From: Bill Schoolcraft X-X-Sender: bill@corten8 To: questions@FreeBSD.ORG Subject: Re: dsp busy error In-Reply-To: <3DA6F450.1040500@psydeshow.org> Message-ID: System-ID: [en] (I; Linux i86pc) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Fri, 11 Oct 2002 it looks like Chris Snyder composed: > David Banning wrote: > > >When I try and use the sound port, I get this error; > > > >/dev/dsp: Device busy > >audio: Device busy > > > >I could restart the machine, but I wondered how I would go about fixing > >this without restarting the machine. > > > > > I had this problem under 4.6.2, never did find a way to fix it other > than restart. Upgrade to STABLE, it should go away. > I can only speak from experience here but in using mpg123 with a directory full of *.mp3 files I had to do a script that first killed "artsd" then ran my mpg123 script. While *inside* the music directory with a list of the mp3 files inside the text file called "playlist.lst" I run a script called "go" and all works well. I run this out of command line. #!/bin/sh # for i in `ps -auxw|grep artsd|grep -v grep|awk '{print $2}'`; do kill -9 $i; done mpg123 -v -v -Z -@ playlist.lst -- |<-----------------------Word-Wrap-At-72-Please----------------------->| Bill Schoolcraft PO Box 210076 -o) San Francisco CA 94121 /\ "UNIX, A Way Of Life." _\_v http://forwardslashunix.com/raw To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message