I am experimenting with Beep function on Windows:
#include <windows.h> ... Beep(frequency, duration);
The computer then beeps with some frequency for some duration. How would I do this on a Linux computer?
Edit: It IS important to output different frequencies.
Check out the source code for beep available with Ubuntu (and probably other distros) or have a look at http://www.johnath.com/beep/beep.c for another source (it’s the same code, I believe).
It allows you to control frequency, length and repetitions (among other things) with ease.