[vlc-devel] [PATCH v5 7/7] upnp: Add UPnP/DLNA MediaRenderer control plugin
Alexandre Janniaux
ajanni at videolabs.io
Tue Nov 26 02:06:24 CET 2019
Hi,
On Mon, Nov 25, 2019 at 10:24:56PM +0100, Johan Gunnarsson wrote:
> > VLC should be able to handle volumes above 100. I suppose in UPNP 0-100
> > is the regular range. 100 should match the 1.0 value in VLC. Otherwise
> > everything will likely play at half the volume if most UPNP clients
> > request 100.
> >
> > Same comment for all the volume related calls/callbacks.
>
> Currently UPnP 0 (quietest) maps to VLC 0.0 and UPnP 100 (loudest)
> maps to VLC 2.0. I think this is correct. If a UPnP client request 100
> it will get full volume.
I don't know if it is that easy. 2.0 is an overdrive of the
volume, it's more that loudest, and the volume_set callback
in audio_output mentions that 1.f is the nominal value, not
really 2.f.
https://www.videolan.org/developers/vlc/doc/doxygen/html/structaudio__output.html#a38d3e01f0ae4d0a266510a7321b3a9f2
Maybe you could allow overdrive through a configuration
variable (like qt-max-volume) but I don't think it's correct
to do software gain at 100% of volume from a user point of
view.
Regards,
--
Alexandre Janniaux
Videolabs
More information about the vlc-devel
mailing list