From owner-freebsd-questions@FreeBSD.ORG Tue Jan 27 19:19:11 2004 Return-Path: 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 7050F16A4CE for ; Tue, 27 Jan 2004 19:19:11 -0800 (PST) Received: from lakemtao07.cox.net (lakemtao07.cox.net [68.1.17.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17F0143D5A for ; Tue, 27 Jan 2004 19:19:10 -0800 (PST) (envelope-from kitbsdlists@HotPOP.com) Received: from vixen42 ([68.109.49.234]) by lakemtao07.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with SMTP id <20040128031908.PKWX2432.lakemtao07.cox.net@vixen42>; Tue, 27 Jan 2004 22:19:08 -0500 Date: Tue, 27 Jan 2004 21:17:46 -0600 From: Vulpes Velox To: Rob Message-Id: <20040127211746.238f2b3c@vixen42.> In-Reply-To: <4016464B.10201@users.sourceforge.net> References: <4016464B.10201@users.sourceforge.net> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: mplayer screws up audio device access X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 03:19:11 -0000 On Tue, 27 Jan 2004 20:06:51 +0900 Rob wrote: > > Hi, > > I am running 4-Stable with up-to-date ports installed. > > I'm puzzled by what mplayer does to my audio device > (I use mplayer-gtk-esound-0.92.0_4 compiled from ports). > > > When I run "gmplayer -vo x11", I can only play one movie with > sound. When I stop the movie (NOT exiting mplayer!) and start > another one, I get this dialog from mplayer: > > "Could not open/initialize audio device -> no sound" > > and, of course, there's no sound. This is quite a nuissance. > > > Any idea what is going wrong here? Not exactly sure, but it sounds like mplayer is still has the device open despit being puased. To fix this add something like this using sysctl... hw.snd.maxautovchans=4 hw.snd.pcm0.vchans=6 Just replace pcm0 with what ever your audio device is... this will allow multiple device to access it... You can also place it in /etc/sysctl.conf and it will take affect on every boot.