[vlc-devel] [PATCH] activex: update initial volume value
Daniel Amm
da2424 at t-online.de
Tue Jul 19 20:16:56 CEST 2016
> The initial volume of libvlc is 100
> This allows the user to set the volume to 50
> ---
> activex/plugin.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/activex/plugin.cpp b/activex/plugin.cpp
> index 9d59da2..e712bf4 100644
> --- a/activex/plugin.cpp
> +++ b/activex/plugin.cpp
> @@ -384,7 +384,7 @@ HRESULT VLCPlugin::onInit(void)
> _bstr_mrl = NULL;
> _b_visible = TRUE;
> _b_mute = FALSE;
> - _i_volume = 50;
> + _i_volume = 100;
> _i_time = 0;
> _i_backcolor = 0;
> // set default/preferred size (320x240) pixels in HIMETRIC
> --
> 2.1.4
>
> Le 2015-07-25 13:41, Daniel Amm a écrit :
> > The initial volume of libvlc is 100
>
> No. The initial volume of LibVLC can be anything.
(No idea why I have forgotten this issue, I hope it's not wrong to
answer to this at this point)
As far as I can see, the activex plugin itself will not set an initial
volume to libvlc, therefore it will be loaded with 100%.
_i_volume is used to set a custom initial volume over the html embed
attribute or the Visual Studio object property window.
A new value will be only accepted if it's different to _i_volume, so if
you want to set it to 50%, it will currently not work.
More information about the vlc-devel
mailing list