SceneSwitcher icon indicating copy to clipboard operation
SceneSwitcher copied to clipboard

Action Audio Set source volume not enough resolution

Open filiphanes opened this issue 1 year ago • 4 comments

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:

  1. Create Audio action
  2. Try to set volume to -50dB
  3. 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 Snímka obrazovky 2024-02-13 o 17 37 36

Version information

  • OS: Windows 11, MacOS 14
  • OBS Version 30.0.2
  • Plugin Version 1.24.2

filiphanes avatar Feb 13 '24 16:02 filiphanes

The master branch releases have the option to specify the desired db value directly: image

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! :)

WarmUpTill avatar Feb 13 '24 18:02 WarmUpTill

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 ;)

filiphanes avatar Feb 13 '24 22:02 filiphanes

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!

WarmUpTill avatar Feb 15 '24 19:02 WarmUpTill

I added the option to use dB values in the audio condition with the linked PR. image

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!

WarmUpTill avatar Feb 17 '24 15:02 WarmUpTill

it works great, thanks

filiphanes avatar Mar 06 '24 12:03 filiphanes