From: George Kiagiadakis Date: Fri, 28 Jun 2019 15:01:05 +0000 (+0300) Subject: Convert volume to the [0.0,1.0] range before sending it to audiomixer X-Git-Tag: 7.99.3^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=698123549128a1a1741e703f3513abd206b70643;p=apps%2Fmixer.git 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 --- 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); }