:group 'chess-sound)
(defsubst chess-sound (file)
- (funcall chess-sound-play-function
- (expand-file-name (concat file ".wav")
- chess-sound-directory)))
+ (ignore-errors
+ (funcall chess-sound-play-function
+ (expand-file-name (concat file ".wav")
+ chess-sound-directory))))
(defsubst chess-sound-play (file)
(apply 'call-process chess-sound-program
(file-readable-p (expand-file-name "move.wav"
chess-sound-directory))
(or (eq chess-sound-play-function 'play-sound-file)
- (file-executable-p chess-sound-program))))
+ (and chess-sound-program
+ (file-executable-p chess-sound-program)))))
((eq event 'move)
(let* ((ply (chess-game-ply game (1- (chess-game-index game))))