aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/src/mastervolume.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'homescreen/src/mastervolume.cpp')
-rw-r--r--homescreen/src/mastervolume.cpp3
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);
}
}