sbjaerum Wrote:
> I don't know how the multiplication with gain is done in the firmware,
> but wouldn't the small server patch below do what Patrick suggests?
>
> Steinar
>
>
> Index: server/Slim/Player/Squeezebox2.pm
> ===================================================================
> --- server/Slim/Player/Squeezebox2.pm (revision 4942)
> +++ server/Slim/Player/Squeezebox2.pm (working copy)
> @@ -272,7 +272,12 @@
> # Map a floating point dB value to a 16.16 fixed point value
> to
> # send as a new style volume to SB2 (FW 22+).
> my $floatmult = 10 ** ($db/20);
> - return int(($floatmult * (1 << 16)) + 0.5);
> + if ($db >= -25) {
> + return int($floatmult * (1 << 8) + 0.5) * (1 << 8);
> + }
> + else {
> + return int(($floatmult * (1 << 16)) + 0.5);
> + }
> }
Thanks Steinar, I will try it out.
--
Patrick Dixon
www.at-view.co.uk
_______________________________________________
audiophiles mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/audiophiles