I am experimenting with Beep function on Windows:
#include
...
Beep(frequency, duration);
The computer then beeps with some f
In summary:
Outputting a BEL character to a terminal might produce a beep - depending on what terminal it is and what its configuration is. There is no control over this however.
Any sound you like can be produced by outputting audio data to /dev/dsp or some other sound device. This includes beep, but making a sound involves playing back an actual sample.
The console driver provides (in some configurations) an ioctl for /dev/console which beeps with a configurable pitch (much like the NT one)