I made a slide bar myself that go from 0 to 100 for controlling the volume of audio, but I see that db goes from -30 to 0... I'm shure there's a way of doing this conversion, but I'm not shure how, anyone can help?
Thanks in advance!!
The easiest way is to just let the slider do the work for you. Just use your positive reference point (30) and set the slider's Maximum to that. Then juggle the values around to get the negative result.
The volume can go much lower than -30, but it's up to you where you want to stop. You can still here sound at -60, depending on the source.
Hey blackhornet , many thanks man!
I'm wondering what could I use for having a scale from 0 to 100 instead of 0 to 30. Any guess?
Develop games in your browser. Powerful, performant & highly capable.
OK, but you won't actually here a 1% change, so it's a bit pointless, however, here it is.
Cool, you got it!
Thank you blackhornet , I wish you all the best! Be blessed.
For you that may need, the formula is: