Action Audio Set source volume not enough resolution
Describe the bug When setting source volume using action Audio Set source volume, it is not possble to set volume between -40 dB and -96 dB.
To Reproduce Steps to reproduce the behavior:
- Create Audio action
- Try to set volume to -50dB
- Not possible because 1% is -40dB and 0% is -inf dB
Expected behavior Source volume should be configurable in range [0.0, 1.0] exactly as it is in Condition Audio Configured volume level value. It would even help to control via midi using calculated variables because their results are decimal numbers.
Logs
Version information
- OS: Windows 11, MacOS 14
- OBS Version 30.0.2
- Plugin Version 1.24.2
The master branch releases have the option to specify the desired db value directly:
A build with this functionality is available here: https://github.com/WarmUpTill/SceneSwitcher/actions/runs/7857723928
Let me know if that solves your problem or if I should make further adaptions! :)
Great, thanks, that is usable, dB units are linear with faders, so no need to calculate logarithms :)
And would it be possible to use same value from Condition Audio Configured volume level and this?
P.S: dB unit should be written with capital B ;)
And would it be possible to use same value from Condition Audio Configured volume level and this?
Sure I will look into it.
dB unit should be written with capital B
Ah cheers! :) I will fix that!
I added the option to use dB values in the audio condition with the linked PR.
A build will be available here in a few minutes: https://github.com/WarmUpTill/SceneSwitcher/actions/runs/7942704609?pr=1021
Let me know if everything works as you expect!
it works great, thanks