D7922: Use pacmd instead of KMix in PauseMusic Plugin

Thomas Posch noreply at phabricator.kde.org
Fri Sep 22 12:24:09 UTC 2017


thomasp added a comment.


  I took a quick look on how to do this with ALSA:
  
  - amixer set Master mute
  - amixer set Master unmute
  
  Unfortunately it is not that easy with ALSA since you might not use Master as you primary output [sic].
  In my case I would have to call `amixer set 'PCM',0 0` and `amixer set 'PCM'0 255` to mute and unmute respectively. Note that this channel does not support the mute/unmute commands. You would have to read the limits of the control and set it to min/max...
  Looks like there is no easy way to interact directly with ALSA without allowing people to select their master channel - and thus enumerating the ALSA devices in the UI.
  
  kmix allows to set a master channel. The current implementation works as expected.
  
  Since I did not use this option I sure can live without it.

REPOSITORY
  R224 KDE Connect

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

To: nicolasfella, #kde_connect
Cc: thomasp, albertvaka, #kde_connect, daniel.z.tg, jeanv, tfella, aboudhar, seebauer, bugzy, progwolff, MayeulC, menasshock, ach, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20170922/6322363c/attachment.html>


More information about the KDEConnect mailing list