From 698123549128a1a1741e703f3513abd206b70643 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Fri, 28 Jun 2019 18:01:05 +0300 Subject: Convert volume to the [0.0,1.0] range before sending it to audiomixer Fixes setting the volume. Bug-AGL: SPEC-2473 Signed-off-by: George Kiagiadakis Change-Id: I9a778b88d58faedb4480a70af749500ae083bc29 --- app/mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit 1.2.3-korg