Date: Sat, 7 Dec 2013 12:55:15 -0500 From: Randy Pratt <bsd-unix@embarqmail.com> To: Julian Stecklina <jsteckli@os.inf.tu-dresden.de> Cc: freebsd-multimedia@freebsd.org 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 07 Dec 2013 11:11:59 +0100
Julian Stecklina <jsteckli@os.inf.tu-dresden.de> wrote:
>
>
> Shane Ambler <FreeBSD@ShaneWare.Biz> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131207125515.952ad3bd4fa6c4e94e4d6b4d>
