From owner-freebsd-multimedia@FreeBSD.ORG Tue Dec 24 23:50:01 2013 Return-Path: Delivered-To: freebsd-multimedia@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5036966 for ; Tue, 24 Dec 2013 23:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 941811AA9 for ; Tue, 24 Dec 2013 23:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBONo1Ku035883 for ; Tue, 24 Dec 2013 23:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBONo1Q0035882; Tue, 24 Dec 2013 23:50:01 GMT (envelope-from gnats) Date: Tue, 24 Dec 2013 23:50:01 GMT Message-Id: <201312242350.rBONo1Q0035882@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org Cc: From: Shane Ambler Subject: Re: ports/185076: multimedia/vlc: volume level doesn't saved & restored X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Shane Ambler List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Dec 2013 23:50:01 -0000 The following reply was made to PR ports/185076; it has been noted by GNATS. From: Shane Ambler To: Anton Sayetsky , bug-followup@FreeBSD.org Cc: Subject: Re: ports/185076: multimedia/vlc: volume level doesn't saved & restored Date: Wed, 25 Dec 2013 10:12:59 +1030 On 24/12/2013 20:50, Anton Sayetsky wrote: >2013/12/24 Shane Ambler : >> I've seen the same volume issue - on 9.2. >> >> Part fix is to add hw.snd.vpc_autoreset=0 to sysctl.conf >I'll try this later. Another sysctl that appears related is hw.snd.vpc_0db this is described as "0db relative level". The default of 45 is what vlc sets the volume to, changing this also changes the volume that vlc resets to. While the vlc volume setting changes, the audio output level doesn't change. That is with vpc_0db=7 and vlc volume=7 or vpc_0db=45 and vlc volume=45 the sound level at the speakers is the same. So while vlc appears to be getting it's volume setting from there, changing it doesn't give the desired result. >> This doesn't fix the Set volume on startup in vlc but it does allow the >> volume to remain consistent between files and vlc restarts instead of >> always jumping to 45%. >This proves that VLC does not (or fails to) call volume restore procedure. >As I remember, it worked on all older versions (<2.1). The vlc volume restore definitely worked before the recent update a few months ago. Of note here, the sound restore does work if jack audio output is used but vlc jack output also doesn't close properly, that is pressing stop or closing the vlc window leaves a continuous tone playing, you need to pause playback before stopping or closing to prevent this. >> This volume change also effects more than vlc >What did you mean? vlc isn't the only program it effects, the sysctl tip was from a musicpd user (using 10-BETA) with the same volume changing behaviour on the multimedia mailing list. Also given that the sysctl is a system level sound option the command to reset the sound level must be coming from the underlying sound system not the user application. There is a possibility that this command has existed for a long time but was ignored until recently.