diff options
Diffstat (limited to 'src/fl_ask.cxx')
| -rw-r--r-- | src/fl_ask.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx index 4496c48bf..9d35447e0 100644 --- a/src/fl_ask.cxx +++ b/src/fl_ask.cxx @@ -47,6 +47,10 @@ #include <FL/x.H> #include <FL/fl_draw.H> +#ifdef __APPLE__ +//# include <AudioToolbox/AudioToolbox.h> +#endif + static Fl_Window *message_form; static Fl_Box *message; static Fl_Box *icon; @@ -273,8 +277,11 @@ void fl_beep(int type) { switch (type) { case FL_BEEP_DEFAULT : case FL_BEEP_ERROR : -// SysBeep(30); - AlertSoundPlay(); + // How Apple is not any better than Microsoft: + /* MacOS 8 */ // SysBeep(30); + /* OS X 10.1 */ AlertSoundPlay(); + /* OS X 10.5 */ // AudioServicesPlayAlertSound(kUserPreferredAlert); + /* OS X 10.6 */ // AudioServicesPlayAlertSound(kSystemSoundID_UserPreferredAlert); break; default : break; |
