From d4ed0297e4b918ab67a1d1cd2337c307bb16caa2 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Fri, 22 Feb 2019 19:01:22 +0200 Subject: Modify mixer to use the new pipewire audiomixer binding Bug-AGL: SPEC-2473 Signed-off-by: George Kiagiadakis Change-Id: I45595d6bde1b710fb81216676c3f8a390f4e5737 --- app/audiorole.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'app/audiorole.cpp') diff --git a/app/audiorole.cpp b/app/audiorole.cpp index 5fad48f..7351d13 100644 --- a/app/audiorole.cpp +++ b/app/audiorole.cpp @@ -37,8 +37,7 @@ void AudioRole::setValue(int value) if (m_Value != value) { m_Value = value; - if (m_Updating == 0) - emit ValueChanged(); + emit ValueChanged(); } } @@ -47,8 +46,11 @@ void AudioRole::BeginUpdate() m_Updating++; } -void AudioRole::EndUpdate() +bool AudioRole::EndUpdate() { - if (m_Updating > 0) m_Updating--; - //if (m_Updating == 0) emit ValueChanged(); + if (m_Updating > 0) { + m_Updating--; + return true; + } + return false; } -- cgit 1.2.3-korg