Location: lg@xxxxxxxxxxxxxx http://arch.xwem.org/2005/
Revision: xwem--main--2.2--patch-44
Archive: lg@xxxxxxxxxxxxxx
Creator: Zajcev Evgeny <lg@xxxxxxxx>
Date: Sun Jan 1 19:14:00 MSK 2006
Standard-date: 2006-01-01 16:14:00 GMT
Modified-files: dockapp/xwem-mpd.el
New-patches: lg@xxxxxxxxxxxxxx/xwem--main--2.2--patch-44
steve@xxxxxxxxxxxxxx/xwem--steve--2.2--patch-19
Summary: mpd volume enhancements
Keywords: enhancement, internal, newfeature, user-visible
Merge from Steve that enhances volume related operations. Here are
original comments:
Amongst other things, this changeset adds "unmute" being the opposite of
"mute". When unmuting the volume it returns to the volume level that
existed before it was muted. When the volume is muted, "MUTE" is
displayed in the dock.
You can now also specify the number of "steps" to increment/decrement the
volume with the `mpd-volume-{up,down}' functions.
Two new convenience functions have been added... `mpd-volume-max' &
`mpd-volume-min'.
* dockapp/xwem-mpd.el (mpd-pre-mute-volume): New. Hold the volume setting
prior to mute so unmute returns to the same volume.
(mpd-volume-mute): Rewrite as a xwem-command so it can use a prefix arg
to unmute. Also use the mpd command `setvol' instead of `volume'
because the latter is a deprecated command.
(mpd-volume-up): Rewrite as a xwem-command, accept numeric prefix arg
to specify the "steps" to increment the volume. Use `setvol' instead
of `volume'.
(mpd-volume-down): Ditto, except we're decreasing the volume of
course.
(mpd-volume-max): New. Convenience function to set volume to maximum.
(mpd-volume-min): New. Convenience function to set volume to minimum.
(mpd-muted-p): New. Return non-nil when volume is at zero.
(xwem-mpd-osd-setup): Use it.
(xwem-mpd-osd-update): Ditto.
|