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

This commit is contained in:
Art Pinch 2020-12-07 10:55:38 +03:00 committed by Simon Redman
parent dc7ce7f01f
commit 19f4b56173

View file

@ -250,6 +250,9 @@ bool SystemvolumePlugin::receivePacket(const NetworkPacket& np)
if (np.has(QStringLiteral("muted"))) {
m_sinksMap[name]->setMuted(np.get<bool>(QStringLiteral("muted")));
}
if (np.has(QStringLiteral("enabled"))) {
m_sinksMap[name]->setDefault(np.get<bool>(QStringLiteral("enabled")));
}
}
}