<div dir="auto"><div>IIRC UPnP doesn't define the scale except 0 means quiet and each step in positive direction should make it louder. I can change so UPnP 100 maps to VLC 1.0 if that's what you guys want.<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 26 Nov 2019, 09:29 Rémi Denis-Courmont, <<a href="mailto:remi@remlab.net">remi@remlab.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,<br><br>1 should map to one and 0 should map to zero. The mapping between zero and one need not be the identity. It depends if/how UPnP defines the scale. Though it obviously must be continuous and monotonic.<br><br>I really don't think there should be a magic amplification factor. That would be very confusing and potentially very damaging for audio quality as well due to saturation.<br><br><div class="gmail_quote">Le 26 novembre 2019 03:06:24 GMT+02:00, Alexandre Janniaux <<a href="mailto:ajanni@videolabs.io" target="_blank" rel="noreferrer">ajanni@videolabs.io</a>> a écrit :<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<pre>Hi,<br><br>On Mon, Nov 25, 2019 at 10:24:56PM +0100, Johan Gunnarsson wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 1ex 0.8ex;border-left:1px solid #729fcf;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0pt 0pt 1ex 0.8ex;border-left:1px solid #ad7fa8;padding-left:1ex"> VLC should be able to handle volumes above 100. I suppose in UPNP 0-100<br> is the regular range. 100 should match the 1.0 value in VLC. Otherwise<br> everything will likely play at half the volume if most UPNP clients<br> request 100.<br><br> Same comment for all the volume related calls/callbacks.<br></blockquote>Currently UPnP 0 (quietest) maps to VLC 0.0 and UPnP 100 (loudest)<br>maps to VLC 2.0. I think this is correct. If a UPnP client request 100<br>it will get full volume.<br></blockquote><br>I don't know if it is that easy. 2.0 is an overdrive of the<br>volume, it's more that loudest, and the volume_set callback<br>in audio_output mentions that 1.f is the nominal value, not<br>really 2.f.<br><br><a href="https://www.videolan.org/developers/vlc/doc/doxygen/html/structaudio__output.html#a38d3e01f0ae4d0a266510a7321b3a9f2" target="_blank" rel="noreferrer">https://www.videolan.org/developers/vlc/doc/doxygen/html/structaudio__output.html#a38d3e01f0ae4d0a266510a7321b3a9f2</a><br><br>Maybe you could allow overdrive through a configuration<br>variable (like qt-max-volume) but I don't think it's correct<br>to do software gain at 100% of volume from a user point of<br>view.<br><br>Regards,<br>--<br>Alexandre Janniaux<br>Videolabs<hr>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank" rel="noreferrer">https://mailman.videolan.org/listinfo/vlc-devel</a></pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</div>_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a></blockquote></div></div></div>