Skip to content

Commit daf1635

Browse files
committed
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.
1 parent 8080abc commit daf1635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/base/macro-condition-audio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ bool MacroConditionAudio::CheckOutputCondition()
6767
OBSSourceAutoRelease source =
6868
obs_weak_source_get_source(_audioSource.GetSource());
6969

70-
double curVolume = _useDb ? _peak : DecibelToPercent(_peak);
70+
double curVolume = _useDb ? _peak : DecibelToPercent(_peak) * 100;
7171

7272
switch (_outputCondition) {
7373
case OutputCondition::ABOVE:

0 commit comments

Comments
 (0)