From 14dff16f0592977e647b202967c9c3a7272f2587 Mon Sep 17 00:00:00 2001 From: Art Pinch Date: Mon, 23 Nov 2020 18:19:01 +0300 Subject: [PATCH] [SystemVolumePlugin][PulseAudio] Support for changing default audio output from remote device --- plugins/systemvolume/systemvolumeplugin-pulse.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/systemvolume/systemvolumeplugin-pulse.cpp b/plugins/systemvolume/systemvolumeplugin-pulse.cpp index 7a56ff4e3..16dfb6717 100644 --- a/plugins/systemvolume/systemvolumeplugin-pulse.cpp +++ b/plugins/systemvolume/systemvolumeplugin-pulse.cpp @@ -50,6 +50,9 @@ bool SystemvolumePlugin::receivePacket(const NetworkPacket& np) if (np.has(QStringLiteral("muted"))) { sink->setMuted(np.get(QStringLiteral("muted"))); } + if (np.has(QStringLiteral("enabled"))) { + sink->setDefault(np.get(QStringLiteral("enabled"))); + } } } return true;