diff options
Diffstat (limited to 'otherlibs/graph/sound.c')
-rw-r--r-- | otherlibs/graph/sound.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/otherlibs/graph/sound.c b/otherlibs/graph/sound.c index 4b3062206..dc75b7ed0 100644 --- a/otherlibs/graph/sound.c +++ b/otherlibs/graph/sound.c @@ -15,20 +15,20 @@ #include "libgraph.h" -value gr_sound(value vfreq, value vdur) +value caml_gr_sound(value vfreq, value vdur) { XKeyboardControl kbdcontrol; - gr_check_open(); + caml_gr_check_open(); kbdcontrol.bell_pitch = Int_val(vfreq); kbdcontrol.bell_duration = Int_val(vdur); - XChangeKeyboardControl(grdisplay, KBBellPitch | KBBellDuration, + XChangeKeyboardControl(caml_gr_display, KBBellPitch | KBBellDuration, &kbdcontrol); - XBell(grdisplay, 0); + XBell(caml_gr_display, 0); kbdcontrol.bell_pitch = -1; /* restore default value */ kbdcontrol.bell_duration = -1; /* restore default value */ - XChangeKeyboardControl(grdisplay, KBBellPitch | KBBellDuration, + XChangeKeyboardControl(caml_gr_display, KBBellPitch | KBBellDuration, &kbdcontrol); - XFlush(grdisplay); + XFlush(caml_gr_display); return Val_unit; } |