An extract from the code in file Squeezebox2.pm
AFAICT the volume ramp is table driven and non linear - finer at low
volume than at high volume.
Also you need to get confirmation from developers that the volume ramp
is the same for all products. I think Boom has fine control at low
volume as users in bed complained of not being able to go quiet enough
when going to sleep.
Code:
--------------------
# The original Squeezebox2 firmware supported a fairly narrow volume range
# below unity gain - 129 levels on a linear scale represented by a 1.7
# fixed point number (no sign, 1 integer, 7 fractional bits).
# From FW 22 onwards, volume is sent as a 16.16 value (no sign, 16 integer,
# 16 fractional bits), significantly increasing our fractional range.
# Rather than test for the firmware level, we send both values in the
# volume message.
# We thought about sending a dB scale volume to the client, but decided
# against it. Sending a fixed point multiplier allows us to change
# the mapping of UI volume settings to gain as we want, without being
# constrained by any scale other than that of the fixed point range allowed
# by the client.
# Old style volume:
# we only have 129 levels to work with now, and within 100 range,
# that's pretty tight.
# this table is optimized for 40 steps (like we have in the current player UI.
my @volume_map = (
0, 1, 1, 1, 2, 2, 2, 3, 3, 4,
5, 5, 6, 6, 7, 8, 9, 9, 10, 11,
12, 13, 14, 15, 16, 16, 17, 18, 19, 20,
22, 23, 24, 25, 26, 27, 28, 29, 30, 32,
33, 34, 35, 37, 38, 39, 40, 42, 43, 44,
46, 47, 48, 50, 51, 53, 54, 56, 57, 59,
60, 61, 63, 65, 66, 68, 69, 71, 72, 74,
75, 77, 79, 80, 82, 84, 85, 87, 89, 90,
92, 94, 96, 97, 99, 101, 103, 104, 106, 108, 110,
112, 113, 115, 117, 119, 121, 123, 125, 127, 128
);
--------------------
--
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=53911
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss