Replies: 3 comments 2 replies
-
Thanks for the message. There is another slight wrinkle in this -- the range is -30.0 to 0.0 alright, but additionally the value -144.0 means "mute". The -30.0 to 0.0 range does suggest some kind of logarithmic range, but AFAIK there is no documentary evidence to support this. Shairport Sync controls hardware or software mixers that have decibel-denominated settings -- it doesn't even try to control mixers without dB-denominated settings. There is a wide range of mixer attenuation ranges out there, from about 30 dB on cheap USB DACs to well over 100 dB on others. In reality, a range of 70 to 80 dB seems necessary. Shairport Sync allows you to specify the range you wish to use -- it can also augment a limited hardware mixer range with an additional software mixer. (It can also be set to ignore volume control information completely.) Shairport Sync has three optional transfer functions between the AirPlay range and the dB ranges of the mixers:
There is quite a bit of information on the Internet about the properties of "ideal" volume controls. |
Beta Was this translation helpful? Give feedback.
-
Thanks! very helpful! |
Beta Was this translation helpful? Give feedback.
-
@mikebrady Thank you for your detailed explanation. I have another question about "the value -144.0 means mute.", I can't set the volume to this value with my IOS or MAC OS device. Under what situation will this value appear? |
Beta Was this translation helpful? Give feedback.
-
(this is from the maintainer of a different open-source AirPlay application , UxPlay, an AppleTV emulator)
We are having a discussion about what the "correct" implementaion of Apple's audio volume is. The "unofficial" AirPlay specification alleges that the values "volume" ( a floating point number in range [-30:0] inclusive) are (power?) decibels
Conversion to a linear scale (UxPlay uses GStreamer for audio after RAOP decryption) would then be (in C) appear to be
(probably set to zero for volume -30 or below,, and to 1 for 0 and above)
However this is not entirely satisfactory, and there seem to be issues with AirPlay volume in proprietary non-Apple
implememtations too.
what does shairport-sync do?
does anyone here have any insights into Apple AirPlay / AirPlay2 volume-control quirks?
Beta Was this translation helpful? Give feedback.
All reactions