From bbfcd6d7d246985978b4f06ab3ca9f4e78852f7b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 29 Aug 2008 05:12:58 -0400 Subject: Don't report an error if the user's sound reporting function fails to work. This is needed on OS X, which has the `play-sound-file` function, but when called reports an error that sound support is not available. --- chess-sound.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chess-sound.el') diff --git a/chess-sound.el b/chess-sound.el index cb6c95c..ed1ce53 100644 --- a/chess-sound.el +++ b/chess-sound.el @@ -42,9 +42,10 @@ :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 -- cgit v1.2.3