hey everyone am trying to generate a beeping sound on my pc using the 'sound' function , the problem is i am getting errors (5 to be exact ) when i compile this program , please someone point out the error on this code , thanx :) below is the code-
#include <dos.h>
#include <conio.h>
int main()
{
unsigned frequency;
do
{
for (frequency = 500; frequency <= 1000; frequency += 50)
{
sound(frequency);
delay(50);
}
for (frequency = 1000; frequency >= 500; frequency -= 50)
{
sound(frequency);
delay(50);
}
}
while (! kbhit());
nosound();
system("PAUSE");
return 0;
}