How tick tick sound can be generated through CPP program?
#include <windows.h> // WinApi header
using namespace std;
main(void)
{
int n=0,m;
int Freq,ON_Time;
Freq=1000; //Hz
ON_Time = 100; //msec.
for(n=0;n<10;n++)
{
Beep(Freq, ON_Time);
Beep(0, ON_Time);
}
}
Comments
Leave a comment