Spotify Connect - Volume threshold is ignored

Volumio Version: 2.806
Hardware: Raspberry Pi 3 model B
DAC: Topping DX7s

Hi, I have found a little bug, when I set the Max Volume Level to 90 (or every value)
the GUI cannot let to change it. but, when I am playing via Spotify on my mobile device and stream it to the Volumio (With a plugin that I have installed),
a click on the volume button is changing the volume


I am aware about this one, but am kind a stuck on how to proceed.
See the linked issue(s):


The problem is I don’t know the best way to proceed with the volume mapping to the threshold set - ashthespy/Vollibrespot/issue

From my understanding of the volume control code, Volumio seems to just set a hard limit.
So in your example max volume: 90 means any volume above 90 is truncated back to 90, even though the slider moves all the way to 100 on the Volumio UI.

I am not sure if this is the best way, I would rather implement it in the daemon as a mapping of the value to the volume threshold set. This mapping would be linear or cubic depending on the “Volume curve method” selected. But then again, not sure if this is the right “audiophile” way to do it, so it’s on my back burner, and my implementation never got pushed…