Unmute audio when volume changes

BUG: 408705
parent fba0c2d5
......@@ -55,12 +55,15 @@ bool SystemvolumePlugin::receivePacket(const NetworkPacket& np)
QString name = np.get<QString>(QStringLiteral("name"));
if (sinksMap.contains(name)) {
PulseAudioQt::Sink *sink = sinksMap.value(name);
if (sink) {
if (np.has(QStringLiteral("volume"))) {
sinksMap[name]->setVolume(np.get<int>(QStringLiteral("volume")));
int volume = np.get<int>(QStringLiteral("volume"));
sink->setVolume(volume);
sink->setMuted(false);
}
if (np.has(QStringLiteral("muted"))) {
sinksMap[name]->setMuted(np.get<bool>(QStringLiteral("muted")));
sink->setMuted(np.get<bool>(QStringLiteral("muted")));
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment