;; Author: Steve Youngs <steve@sxemacs.org>
;; Maintainer: Steve Youngs <steve@sxemacs.org>
;; Created: <2007-12-02>
-;; Time-stamp: <Monday Jan 21, 2013 12:13:24 steve>
+;; Time-stamp: <Saturday Jan 26, 2013 21:45:54 steve>
;; Download: <http://bastard.steveyoungs.com/~steve/SXEmacs/inits/>
;; HTMLised: <http://bastard.steveyoungs.com/~steve/SXEmacs/htmlinits/09-sounds-sy.html>
;; Git Repo: git clone http://git.sxemacs.org/syinit
;:*=======================
;:* Set default sound device
(when (getenv "DISPLAY") ; skip the lot if not in X11
- ;; (setq default-audio-device (make-audio-device 'pulse))
- (setq default-audio-device (make-audio-device 'alsa))
+ (setq default-audio-device (make-audio-device 'pulse))
+ ;(setq default-audio-device (make-audio-device 'alsa))
(init-workers 6)
(setq synchronous-sounds nil)
(load "sound")
(load-sound-file "cuckoo" 'alarm))
)
;:*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-(message "sounds loaded")
+(if default-audio-device
+ (message "sounds loaded")
+ (message "sounds NOT loaded (OK if this is a TTY)"))