how to create c program to generate sound from sound blaster speaker or in stereo speaker in computer?
using c & c++ code
using c & c++ code
Zarn
Favorite Answer
You clearly need to work on your Google skills - this question is easily answered if you tried doing that.
http://www.dreamincode.net/forums/topic/18352-play-sound/
http://www.codeproject.com/KB/audio-video/SoundGenerator.aspx
http://www.csounds.com/node/199
http://www.daniweb.com/forums/thread15252.html
http://www.daniweb.com/code/snippet216360.html
#include <iostream>
#include <windows.h> // WinApi header
using namespace std;
int main()
{
Beep(523,500); // 523 hertz (C5) for 500 milliseconds
Beep(587,500);
Beep(659,500);
Beep(698,500);
Beep(784,500);
cin.get(); // wait
return 0;
}