XBell(display, percent)
Display *display;
int percent;
display | Specifies the connection to the X server. |
percent | Specifies the volume for the bell, which can range from \-100 to 100 inclusive. |
base - [(base * percent) / 100] + percent
The volume at which the bell rings when the percent argument is negative is:
base + [(base * percent) / 100]
To change the base volume of the bell, use XChangeKeyboardControl().
XBell() can generate a BadValue error.
BadValue | Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error. |