D4140: Rework playing of volume feedback

David Rosca noreply at phabricator.kde.org
Wed Jan 10 18:15:16 UTC 2018


drosca added a comment.


  In https://phabricator.kde.org/D4140#188956, @Zren wrote:
  
  > Is the `onVolumeChange` call delayed? I'm not sure if it's fired when we set it, or PulseAudio gets back to us.
  >
  > Does this fire `onVolumeChange` immediately?
  >
  >   sinkModel.preferredSink.volume = volume;
  >
  >
  >
  
  
  No. All signals are delayed by design because they are emitted //only// when changes are signaled from pulseaudio.
  
  > Also, does `sinkModel.preferredSink.volume` = `sinkModel.preferredSink.volume` fire `onVolumeChange` too?
  > 
  > Eg: `increaseVolume()` setting it to 100% when it's already at 100%.
  
  Most likely no, unless it actually did change volume on pulseaudio side.

REPOSITORY
  R115 Plasma Audio Volume Applet

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

To: drosca, #plasma
Cc: Zren, broulik, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180110/645e9431/attachment.html>


More information about the Plasma-devel mailing list