D22316: Avoid garbling the sound if the volume slider is moved fast

kezi noreply at phabricator.kde.org
Fri Aug 2 00:19:35 BST 2019


kezik added a comment.


  In D22316#505466 <https://phabricator.kde.org/D22316#505466>, @ngraham wrote:
  
  > With this change, if I press the volume up and volume down key on my keyboard, feedback only plays every second or third time I hit the button (depending on how fast I press it).
  
  
  True
  
  For some reason, if I measure the amount of time that it takes for ca_context_playing to switch back from 1 to 0, by busy waiting, it blocks for about two seconds, even though the actual sound lasts about 0.07 seconds
  With the volume slider, for some other reason, the ca_context_playing goes back to 0 sooner, but with the volume keys it blocks the whole two seconds.
  
  I have no idea on why it does that

REPOSITORY
  R115 Plasma Audio Volume Applet

REVISION DETAIL
  https://phabricator.kde.org/D22316

To: kezik, #plasma, drosca, davidedmundson, ngraham
Cc: filipf, ngraham, davidedmundson, plasma-devel, kezik, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190801/9a199fe5/attachment.html>


More information about the Plasma-devel mailing list