diff options
author | forcer <forcer> | 2006-05-31 00:11:00 +0000 |
---|---|---|
committer | forcer <mwolson@gnu.org> | 2006-05-31 00:11:00 +0000 |
commit | 25efa815c1e86e9a2cb20c26c73981f410d6a093 (patch) | |
tree | 05aa7529712f4bb86eeb2565a98f2a7700648266 | |
parent | 8027bb23119322eaf6c4601fbd4e3ae31b88961f (diff) |
emms-volume-amixer.el: Provide a way to set the control for amixer
darcs-hash:20060531001102-2189f-d203d6c92b8e72c7ab8dd380834cba1700815e5f.gz
-rw-r--r-- | emms-volume-amixer.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/emms-volume-amixer.el b/emms-volume-amixer.el index b721b38..74856c6 100644 --- a/emms-volume-amixer.el +++ b/emms-volume-amixer.el @@ -38,9 +38,16 @@ ;;; Code: +(defcustom emms-volume-amixer-control "Master" + "The control to change the volume with." + :type '(choice (const :tag "Master" "Master") + (const :tag "PCM" "PCM") + (string :tag "Something else: ")) + :group 'emms) + (defun emms-volume-amixer-sset-master (var) "Change amixer master volume by VAR." - (start-process "mixer" nil "amixer" "sset" "Master" var)) + (start-process "mixer" nil "amixer" "sset" emms-volume-amixer-control var)) (defun emms-volume-amixer-raise () "Increase volume by 2%." |