<table><tr><td style="">drosca created this revision.<br />drosca added a reviewer: Plasma.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2270" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This changes the applet to display volume icon and control volume<br />
through scroll / global shortcuts of "preferred" sink.</p>
<p>Preferred sink is currently chosen according to these rules:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">if there is only one sink, that sink is preferred</li>
<li class="remarkup-list-item">if there is some sink that is currently playing some sound, that sink is preferred (if default sink is playing sound, default sink is used instead)</li>
<li class="remarkup-list-item">if there is some sink that is currently idle (there are streams on the device, but not currently playing), that one sink is preferred (same exception for default sink is used here as in case above)</li>
</ul>
<p>This should help with changing the volume of correct audio device in<br />
most cases.</p>
<p>BUG: 365771</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rPLASMAPA Plasma Audio Volume Applet</div></div></div><br /><div><strong>BRANCH</strong><div><div>preferred-devices (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2270" rel="noreferrer">https://phabricator.kde.org/D2270</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applet/contents/ui/main.qml<br />
src/device.cpp<br />
src/device.h<br />
src/pulseaudio.cpp<br />
src/pulseaudio.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>drosca, Plasma<br /><strong>Cc: </strong>plasma-devel, jensreuterberg, abetts, sebas<br /></div>