obs-websocket-community-projects / obs-websocket-js

Consumes https://github.com/obsproject/obs-websocket
MIT License
657 stars 95 forks source link

Trying to understand the Audio Mixer slider logic with dB #344

Open nospam2k opened 7 months ago

nospam2k commented 7 months ago

I'm getting the current volume and trying to use the inputVolumeDb to set my http input range slider but the slider is linear and the the audio mixer sliders aren't. I've been going round and round trying to figure out how to use Math.Log10 and various other things I've seen onLine but can't figure out how to make my javascript slider be in the same (relative) position as the Audio Mixer sliders. When I say relative, I mean like the same relative position at 1/4, 1/2, 3/4 along the slider scale.