summaryrefslogtreecommitdiff
path: root/src/fl_ask.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-02-25 23:29:42 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-02-25 23:29:42 +0000
commit60c1ccd33e0e87bacb45d87a9fc3e58b7a9e0723 (patch)
tree25338fedbec8221c232340eaa1b29462050fc3b8 /src/fl_ask.cxx
parent7f395e6e4410e376ff95c914506d1599083afce7 (diff)
Working VisualC suport in IDE's (dll's are still missing). Fixed a few warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_ask.cxx')
-rw-r--r--src/fl_ask.cxx11
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;