[SystemVolumePlugin][PulseAudio] Support for changing default audio output from remote device

This commit is contained in:
Art Pinch 2020-11-23 18:19:01 +03:00 committed by Simon Redman
parent ebd7e53440
commit 14dff16f05

View file

@ -50,6 +50,9 @@ bool SystemvolumePlugin::receivePacket(const NetworkPacket& np)
if (np.has(QStringLiteral("muted"))) {
sink->setMuted(np.get<bool>(QStringLiteral("muted")));
}
if (np.has(QStringLiteral("enabled"))) {
sink->setDefault(np.get<bool>(QStringLiteral("enabled")));
}
}
}
return true;