aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-06-28 18:01:05 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-07-01 14:37:35 +0300
commit698123549128a1a1741e703f3513abd206b70643 (patch)
tree3f572c5d86edadcddd4153c2d19fc3b7dbc9f280
parent38598f4a2a84b6727bcbaefbe79da0ba740d32d2 (diff)
Convert volume to the [0.0,1.0] range before sending it to audiomixerhalibut_8.0.0halibut_7.99.3halibut/8.0.0halibut/7.99.38.0.07.99.3
Fixes setting the volume. Bug-AGL: SPEC-2473 Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com> Change-Id: I9a778b88d58faedb4480a70af749500ae083bc29
-rw-r--r--app/mixer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mixer.cpp b/app/mixer.cpp
index fae2e6a..e37e741 100644
--- a/app/mixer.cpp
+++ b/app/mixer.cpp
@@ -49,7 +49,7 @@ void Mixer::setRoleVolume(AudioRole* role)
QJsonObject arg;
arg.insert("control", role->Name().toLocal8Bit().data());
- arg.insert("value", QJsonValue(role->Value()));
+ arg.insert("value", QJsonValue(role->Value() / 100.0));
m_client.call("audiomixer", "volume", arg);
}