summaryrefslogtreecommitdiffstats
path: root/app/audiorole.cpp
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-02-22 19:01:22 +0200
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-06-10 16:04:20 +0300
commitd4ed0297e4b918ab67a1d1cd2337c307bb16caa2 (patch)
treeb005d28b1d00bc8619c6bcd8e15778e332ec07c8 /app/audiorole.cpp
parent0f19df88ec387747300c9da05987f794a19461cc (diff)
Modify mixer to use the new pipewire audiomixer binding
Bug-AGL: SPEC-2473 Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com> Change-Id: I45595d6bde1b710fb81216676c3f8a390f4e5737
Diffstat (limited to 'app/audiorole.cpp')
-rw-r--r--app/audiorole.cpp12
1 files changed, 7 insertions, 5 deletions
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;
}