thanks jon, helpful.
my issue with using percentage is i don't have access to the percentage directly - i can only see the volume_value which is the relative display value factoring in the volume leveling necessary for the output device i'm using. sooo..
can i set the volume_value? and assuming not.. what is the formula used to arrive at volume_value from percentage? i'm trying to work it out.. after some coffee i'm sure it'll start to click, lol.
basically 100% = 0, 90% = -8, 63% = -30, 50% = -40, 30% = -56, 5% = -76, 0% = -80 (hard limit)... that's the scale. i'm fuzzy how to work that out into a formula.. can't see another way to accomplish this though.
so.. if i take the abs value of the vol-value, multiply by 1.25 (the 0-80 scale) then subtract that from 100... does that give me the percentage??? lol. coffee. needed.
-56 = 56 x 1.25 = 70 ; (100-70) = 30%. ???
is this the cleanest solution to this issue?
thanks a lot!