Hi I am using sound function to generate sounds of certain frequencies.
The sounds generated re coming out from the cpu.
i want them to come out from speakers.
Please suggest me how to do the same.
Here is the code:
#include<iostream.h>
#include
#include<conio.h>
void main()
{
sound(240);
getch();
nosound();
sound(270);
getch();
nosound();sound(300);
getch();
nosound();sound(320);
getch();
nosound();sound(360);
getch();
nosound();sound(400);
getch();
nosound();sound(450);
getch();
nosound();
sound(480);
getch();
nosound();
return;
}
The sounds generated re coming out from the cpu.
i want them to come out from speakers.
Please suggest me how to do the same.
Here is the code:
#include<iostream.h>
#include
#include<conio.h>
void main()
{
sound(240);
getch();
nosound();
sound(270);
getch();
nosound();sound(300);
getch();
nosound();sound(320);
getch();
nosound();sound(360);
getch();
nosound();sound(400);
getch();
nosound();sound(450);
getch();
nosound();
sound(480);
getch();
nosound();
return;
}