From owner-freebsd-multimedia Mon Feb 18 2:13: 5 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from atlantis.homeip.net (a30032.upc-a.chello.nl [62.163.30.32]) by hub.freebsd.org (Postfix) with SMTP id C5F5137B404 for ; Mon, 18 Feb 2002 02:13:00 -0800 (PST) Received: (qmail 69367 invoked from network); 18 Feb 2002 10:12:58 -0000 Received: from jeremy.ourhome.nl (192.168.1.4) by atlantis.ourhome.nl with SMTP; 18 Feb 2002 10:12:58 -0000 Date: Mon, 18 Feb 2002 11:13:36 +0100 From: Willem van Engen To: "Sue Blake" Cc: freebsd-multimedia@freebsd.org Subject: Re: closing sound device Message-Id: <20020218111336.68c21d8c.wvengen@stack.nl> In-Reply-To: <20020217122625.C291@welearn.com.au> References: <20020217122625.C291@welearn.com.au> X-Mailer: Sylpheed version 0.7.1 (GTK+ 1.2.10; i386--freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 17 Feb 2002 12:26:25 +1100 "Sue Blake" wrote: > After I stop playing a sound file (deliberately within a program > or because of program crash), I can't play any more music until > I reboot the machine. I have a similar problem: when I use a program which uses mpg123 in remote mode to play mp3's somehow some mpg123's become zombies. And sometimes the audio device is not closed I think, so I can't use that particular audio device anymore until it's rebooted. Currently, I start to use a different sound channel. I see you have only one playback channel (sndstat: 1p), so you could set the sysctl hw.snd.pcm0.vchans to 4 and use /dev/dsp0.[0123] to play music four times as long. I hope this helps to get around it. But I would like to have a way to 'free' a device when I want it. Is that possble at all? - Willem van Engen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message