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.
This commit is contained in:
fryshorts
2015-01-02 20:10:59 +01:00
parent 89792865a1
commit 10a0b08ec9

View File

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