From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 7 17:55:25 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0F6CFB91 for ; Sat, 7 Dec 2013 17:55:25 +0000 (UTC) Received: from mailrelay.embarq.synacor.com (mail.centurylink.net [205.219.233.9]) by mx1.freebsd.org (Postfix) with ESMTP id C5C321F1A for ; Sat, 7 Dec 2013 17:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; d=embarqmail.com; s=s012408; c=relaxed/simple; q=dns/txt; i=@embarqmail.com; t=1386438917; h=From:Subject:Date:To:Mime-Version:Content-Type; bh=fRLvLLOlKmSeE14+j960HoGHdjQ=; b=f36Yu/gKX61gyqCbED0hvLEKX14HypydeoZUwQhYosOWV3wwqOyXbKr3vnCL1lcl sEmleNKVvSTaJOT9Xx+nu2HhwTO6tqrzXyaOHSGYPVrQMlClXDqO+vSScWffv42+; X_CMAE_Category: , , X-CNFS-Analysis: v=2.0 cv=M+bP2lMs c=1 sm=1 a=3dn2BDQDCgitC1PfbxxZ7A==:17 a=u2Gfh-33FdYA:10 a=1poGYrevpj8A:10 a=kj9zAlcOel0A:10 a=1oqGTYSLAAAA:8 a=fQJn_4cT9IwA:10 a=jaG8-8rGAAAA:8 a=6I5d2MoRAAAA:8 a=zLux9OffdoDXBZwn4pUA:9 a=CjuIK1q_8ugA:10 a=KLEEBOFI0cIA:10 a=3dn2BDQDCgitC1PfbxxZ7A==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp02.agate.dfw.synacor.com header.from=bsd-unix@embarqmail.com; sender-id=neutral Authentication-Results: smtp02.agate.dfw.synacor.com smtp.mail=bsd-unix@embarqmail.com; spf=neutral; sender-id=neutral Authentication-Results: smtp02.agate.dfw.synacor.com smtp.user=bsd-unix@embarqmail.com; auth=pass (LOGIN) Received-SPF: neutral (smtp02.agate.dfw.synacor.com: 71.3.82.230 is neither permitted nor denied by domain of embarqmail.com) Received: from [71.3.82.230] ([71.3.82.230:16311] helo=earth.milkyway.net) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPA id C7/E1-07277-30163A25; Sat, 07 Dec 2013 12:55:16 -0500 Date: Sat, 7 Dec 2013 12:55:15 -0500 From: Randy Pratt To: Julian Stecklina Subject: Re: Weird volume behaviour on 10.0-BETA4 Message-Id: <20131207125515.952ad3bd4fa6c4e94e4d6b4d@embarqmail.com> In-Reply-To: <99e48466-97d3-415b-a9ee-28ae8cbc4655@email.android.com> References: <1386368340.4331.8.camel@janus.xn--pl-wia.net> <52A2BB67.5060809@ShaneWare.Biz> <99e48466-97d3-415b-a9ee-28ae8cbc4655@email.android.com> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; i386-portbld-freebsd8.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Dec 2013 17:55:25 -0000 On Sat, 07 Dec 2013 11:11:59 +0100 Julian Stecklina wrote: > > > Shane Ambler wrote: > >I have seen the same thing on 9.2 with vlc. Previously the volume > >stayed at a stable level. > > > >But for a while now it always starts a new file at 45% volume. > > Are you using USB audio? I noticed this some time back particularly when playing multiple audio files at the same time. I have a few notes on it. I'm not sure if all of it is still relevant but it may help: ============================================================= Restoring Sound to old behavior The default behavior is to restore audio volume to a certain level each time an application using sound is started. Check default settings using sysctl -a. These are the particular settings controlling VPC (Volume Per Channel) hw.snd.vpc_reset: 0 hw.snd.vpc_autoreset: 1 See http://people.freebsd.org/~ariff/SOUND_4.TXT.html for more info where I thought the following should restore the persistent volume level behavior: # mv /var/db/mixer0-state /var/db/mixer0-state.disabled # sysctl hw.snd.vpc_reset=1 # sysctl hw.snd.vpc_autoreset=0 Since I could not change at the command line: # sysctl hw.snd.vpc_reset=1 hw.snd.vpc_reset: 0 -> 0 I added it to /etc/sysctl.conf: #Added to prevent mixer from resetting sound levels to default hw.snd.vpc_autoreset=0 Sound seems persistent across playing multiple files by changing "hw.snd.vpc_autoreset" ============================================================= If something is different from above you might reply so that it would help others. Randy