From 10a0b08ec9768212852b7c704235f5cccf082afb Mon Sep 17 00:00:00 2001 From: fryshorts Date: Fri, 2 Jan 2015 20:10:59 +0100 Subject: [PATCH] obs: Fix signal in advanced volume controls Suppress signals of the volume input when setting a value. This stops the volume control from setting the source volume when it receives the volume changed event from the source. --- obs/adv-audio-control.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/obs/adv-audio-control.cpp b/obs/adv-audio-control.cpp index da1c0e32b..77bacb63a 100644 --- a/obs/adv-audio-control.cpp +++ b/obs/adv-audio-control.cpp @@ -180,7 +180,9 @@ void OBSAdvAudioCtrl::SourceFlagsChanged(uint32_t flags) void OBSAdvAudioCtrl::SourceVolumeChanged(float value) { + volume->blockSignals(true); volume->setValue(int(value * 100)); + volume->blockSignals(false); } void OBSAdvAudioCtrl::SourceSyncChanged(int64_t offset)