[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


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.


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

Alexandre Janniaux

More information about the vlc-devel mailing list