The switch to using agl-service-audiomixer missed a scaling to 0.0 - 1.0
for the value requested when changing the master volume slider, add that
to fix it. Also, change the displayed name back to "Master Volume" to
match what it now represents with PipeWire.
Bug-AGL: SPEC-2788
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I2fb94d161499b759540105958bcb3d6f5da1884f
font.pixelSize: 36
anchors.horizontalCenter: parent.horizontalCenter
color: "white"
- text: qsTr("Active Volume")
+ text: qsTr("Master Volume")
}
RowLayout {
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);
}
}