Function: mpc-volume-refresh

mpc-volume-refresh is a byte-compiled function defined in mpc.el.gz.

Signature

(mpc-volume-refresh)

Documentation

Maintain the volume.

Source Code

;; Defined in /usr/src/emacs/lisp/mpc.el.gz
(defun mpc-volume-refresh ()
  "Maintain the volume."
  (let ((status-buf (mpc-proc-buffer (mpc-proc) 'status))
        (status-vol (cdr (assq 'volume mpc-status))))
    ;; If MPD is paused or stopped the volume is nil.
    (when status-vol
      (setq mpc-volume
            (mpc-volume-widget
             (string-to-number status-vol))))
    (when (buffer-live-p status-buf)
      (with-current-buffer status-buf (force-mode-line-update)))))