- arg.insert("control", "Master");
- arg.insert("value", volume);
+ arg.insert("control", MASTER_CONTROL);
+ double v = (double) volume / 100.0;
+ arg.insert("value", v);
m_client.call("audiomixer", "volume", arg, [this](bool r, const QJsonValue& v) {
if (r && v.isObject()) {
int volume = v.toObject()["response"].toObject()["volume"].toDouble() * 100;
m_client.call("audiomixer", "volume", arg, [this](bool r, const QJsonValue& v) {
if (r && v.isObject()) {
int volume = v.toObject()["response"].toObject()["volume"].toDouble() * 100;