xwem-devel
[Top] [All Lists]

Summary: steve@xxxxxxxxxxxxxx/xwem--steve--2.2--patch-19

From: Steve Youngs <steve@xxxxxxxx>
Subject: Summary: steve@xxxxxxxxxxxxxx/xwem--steve--2.2--patch-19
Date: Wed, 07 Dec 2005 15:21:40 +1000
Organization: The XWEM Project
User-agent: Gnus/5.110004 (No Gnus v0.4) SXEmacs/22.1.3 (BMW, linux)
Revision: xwem--steve--2.2--patch-19
Archive: steve@xxxxxxxxxxxxxx
Creator: Steve Youngs <steve@xxxxxxxx>
Date: Mon Nov 28 07:27:21 EST 2005
Standard-date: 2005-11-27 21:27:21 GMT
Modified-files: dockapp/xwem-mpd.el
New-patches: steve@xxxxxxxxxxxxxx/xwem--steve--2.2--patch-19
Summary: mpd volume enhancements
Keywords: enhancement, internal, newfeature, user-visible

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.




-- 
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
|                        In space,                         |
|             No one can hear you rip a stinky             |
|---------------------------------------<steve@xxxxxxxx>---|

Attachment: pgp9YxHzEg1SA.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>