From owner-freebsd-questions@FreeBSD.ORG Fri Jul 3 14:12:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 845811065673 for ; Fri, 3 Jul 2009 14:12:10 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out1.uni-muenster.de (ZIVM-OUT1.UNI-MUENSTER.DE [128.176.192.8]) by mx1.freebsd.org (Postfix) with ESMTP id D70E18FC23 for ; Fri, 3 Jul 2009 14:12:09 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.42,342,1243807200"; d="scan'208";a="276205510" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER04.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay1.uni-muenster.de with ESMTP; 03 Jul 2009 16:12:08 +0200 Received: by ZIVMAILUSER04.UNI-MUENSTER.DE (Postfix, from userid 149459) id 41B161B008A; Fri, 3 Jul 2009 16:12:08 +0200 (CEST) Date: Fri, 03 Jul 2009 16:12:07 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: "Paul B. Mahol" Message-ID: In-Reply-To: <3a142e750907030646v68401986pf411d6e4fb8df273@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Problem with audio apps and mixer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jul 2009 14:12:10 -0000 wow. thanks a bunch. this new feature of having each app use it's own volume setting is pretty cool. however i think i'd like to preserve the volume setting for each application and rather not have it reset. because i think this feature takes the pid of the app and preserves the volume for the pid. mplayer and mpd however seem to fork a new instance after a song change or pausing etc. so so the volume get's reset while the app is still running. i might be wrong, but i think there's a typo in this description of the feature i'm looking for: hw.snd.vpc_autoreset (default=1, enabled) 0=disable, 1=enable Notes: By default, channel volume will be reset to 0db relative after the channel is closed which means that any changes will be lost and not preserved. Setting this to '1' will preserve the volume at the cost of possible confusion for other applications trying to re-open the same device (see hw.snd.vpc_reset for possible 'panic' switch to fix the volumes). shouldn't it be: hw.snd.vpc_autoreset (default=1, enabled) 0=disable, 1=enable Notes: By default, channel volume will be reset to 0db relative after the channel is closed which means that any changes will be lost and not preserved. Setting this to '0' will preserve the volume at the cost of possible confusion for other applications trying to re-open the same device (see hw.snd.vpc_reset for possible 'panic' switch to fix the volumes). ???? so after settings hw.snd.vpc_autoreset=0 each application uses it's own volume setting AND preserves it. just what i wanted. even better because i didn't know this cool new feature existed. :) thanks again for the hint. cheers. alex Paul B. Mahol schrieb am 2009-07-03: > On 7/3/09, Alexander Best wrote: > > hi there, > > i've never had a problem to adjust the volume with audio apps like > > mplayer > > or > > mpd. recently however i'm experiencing this strange behaviour. the > > app's > > volume doesn't match the volume that `mixer` reports. here's an > > example: > CURRENT have VPC. > You can completly disable such feature with this sysctl: > hint.pcm.X.vpc (default=undefined, enabled) > 0=disable, 1=enable > Notes: The only place to enable/disable vpc. > Enabling/Disabling requires driver reload. > here is explanation with more details: > http://people.freebsd.org/~ariff/SOUND_4.TXT.html