Beep
Beeps the internal speaker or sound card (installed in the computer). If you use the internal speaker on your computer, the function does not return until the sound has completed. If you use a sound card, the function returns immediately and the sound plays in the background.
Use the Windows Control Panel to set up waveforms.
Syntax
Beep(nSound)
nSound:
The type of sound:
-1 - Standard beep
0 - Default beep waveform
1 - Critical stop waveform
2 - Question waveform
3 - Exclamation waveform
4 - Asterisk waveform
Return Value
0 (zero) if successful, otherwise an error is returned.
Related Functions
Example
/* Beeps the speaker with the default waveform. */
Beep(0);
See Also