diff options
Diffstat (limited to 'homescreen/src/mastervolume.cpp')
-rw-r--r-- | homescreen/src/mastervolume.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/homescreen/src/mastervolume.cpp b/homescreen/src/mastervolume.cpp index 5a6dc9a..98b884d 100644 --- a/homescreen/src/mastervolume.cpp +++ b/homescreen/src/mastervolume.cpp @@ -47,7 +47,8 @@ void MasterVolume::setVolume(qint32 volume) m_volume = volume; QJsonObject arg; arg.insert("control", "Master"); - arg.insert("value", volume); + double v = (double) volume / 100.0; + arg.insert("value", v); m_client.call("audiomixer", "volume", arg); } } |