Generates a tone of a specified frequency for a specified duration
| Call | ||
| #include <vv_sys.h> | ||
| void beep_vv(hsec, freq) | ||
| int hsec | Length of tone in 1/100s of a second | |
| int freq | Frequency of tone in hertz | |
| Description of Parameters
hsec: Specify the number of hundredths of a second to sound the beep for, or one of the following predefined values: |
||
| BPSHORT | 3, signifying .03 second | |
| BPMEDIUM | 10, signifying .10 second | |
| BPLONG | 30, signifyinf .30 second | |
| BPBELL | Use the operating system bell | |
| freq: Specify the number of hertz to sound the beep at, or one of the following predefined values: | ||
| BPLOW | 100 Hz | |
| BPMIDDLE | 500 Hz | |
| BPHIGH | 1000 Hz | |
| BPBELL | Use the operating system bell | |
| Returns
None |
||
| Description
PCDOS and OS/2 Systems: beep_vv() generates a tone, using the speaker in the IBM PC/XT/AT or PS/2, of the specified frequency and duration. If either the frequency or length of the tone is specified as BPBELL, the standard bell is sounded. Terminal Systems: If either (1) the frequency or length of the tone is BPBELL or (2) both the frequency and length are greater than zero, beep_vv() sends the terminal command string to ring the bell. |
||
| Related Functions | ||
| Cautions
PCDOS Systems: Any beep with the requested duration shorter than 0.05 sec will sound for approximately 0.03 sec, depending on the speed of the machine. |
||