From 2f0b900745246827ad21c2c18c6706969b3e041f Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Thu, 31 Dec 2020 16:59:52 +0100 Subject: [PATCH] fix invalid audio matches --- src/switch-audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch-audio.cpp b/src/switch-audio.cpp index bf5e1db3..4529aa6d 100644 --- a/src/switch-audio.cpp +++ b/src/switch-audio.cpp @@ -106,7 +106,7 @@ void SwitcherData::checkAudioSwitch(bool &match, OBSWeakSource &scene, (s.matchCount * (unsigned int)interval) / 1000.0 >= s.duration; - if (durationReached && audioActive) { + if (volumeThresholdreached && durationReached && audioActive) { scene = (s.usePreviousScene) ? previousScene : s.scene; transition = s.transition; match = true;