Function: org-clock-play-sound
org-clock-play-sound is a byte-compiled function defined in
org-clock.el.gz.
Signature
(org-clock-play-sound &optional CLOCK-SOUND)
Documentation
Play sound as configured by org-clock-sound.
Use alsa's aplay tool if available.
If CLOCK-SOUND is non-nil, it overrides org-clock-sound.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-clock.el.gz
(defun org-clock-play-sound (&optional clock-sound)
"Play sound as configured by `org-clock-sound'.
Use alsa's aplay tool if available.
If CLOCK-SOUND is non-nil, it overrides `org-clock-sound'."
(let ((org-clock-sound (or clock-sound org-clock-sound)))
(cond
((not org-clock-sound))
((eq org-clock-sound t) (beep t) (beep t))
((stringp org-clock-sound)
(let ((file (expand-file-name org-clock-sound)))
(if (file-exists-p file)
(if (executable-find "aplay")
(start-process "org-clock-play-notification" nil
"aplay" file)
(condition-case nil
(play-sound-file file)
(error (beep t) (beep t))))))))))