[SystemVolumePlugin][PulseAudio] Support for changing default audio output from remote device
This commit is contained in:
parent
ebd7e53440
commit
14dff16f05
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue