Fix output volume check of audio condition not working

Only the percent based selection was not working properly since the
calculation was off by a factor of 100.
This commit is contained in:
WarmUpTill
2024-03-03 20:00:27 +01:00
committed by WarmUpTill
parent 8080abc93c
commit daf16357c9

View File

@@ -67,7 +67,7 @@ bool MacroConditionAudio::CheckOutputCondition()
OBSSourceAutoRelease source =
obs_weak_source_get_source(_audioSource.GetSource());
double curVolume = _useDb ? _peak : DecibelToPercent(_peak);
double curVolume = _useDb ? _peak : DecibelToPercent(_peak) * 100;
switch (_outputCondition) {
case OutputCondition::ABOVE: