Change volume of playback ports by default

This seems to be more correct than changing volume of the whole sink.
The default volume of the sink is 1 (100) and alsamixer also changes
volume of the ports.
This commit is contained in:
2022-06-13 20:04:20 +02:00
parent 2d76e595a9
commit cd1a8beeab
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -164,7 +164,8 @@ The indicator is displayed only on graphical terminals."
(not (member (pw-lib-object-type object) allowed-types)))
(setq object nil))
(when (and use-default-p (not object))
(setq object (pw-lib-default-audio-sink)))
(setq object (or (car (pw-lib-default-playback-ports))
(pw-lib-default-audio-sink))))
object))
(defvar pw-ui--osd-timer nil)