Blackninja543 Posted October 9, 2009 Posted October 9, 2009 (edited) #include <windows.h> #include <conio.h> int main(int argc, char *argv[]) { Beep(500,500); //Beep( Frequence(hz), milliseconds ) getch(); return 0; } I think this might help with what you need to do. However I would also play around with it rather then use the code that I have used. Edited October 9, 2009 by Blackninja543 Share this post Link to post Share on other sites More sharing options...
Zertz Posted October 9, 2009 Posted October 9, 2009 This can only output to the internal speaker Share this post Link to post Share on other sites More sharing options...
Blackninja543 Posted October 9, 2009 Posted October 9, 2009 Wrote it in about 30 sec to show someone who needs help on a programming project for homework. Dont know how they wanted it output so this was the simplest method. Share this post Link to post Share on other sites More sharing options...
Zertz Posted October 9, 2009 Posted October 9, 2009 (edited) Yeah that's alright, I was just pointing out the limitation of the function There are many libraries out there to actually output sound files, but they aren't even nearly as simple as the example above Edited October 9, 2009 by Zertz Share this post Link to post Share on other sites More sharing options...
Blackninja543 Posted October 9, 2009 Posted October 9, 2009 Yeah Im hoping the person sees this I posted it in his own thread, he seemed a little distrested about his homework. Share this post Link to post Share on other sites More sharing options...
Zertz Posted October 9, 2009 Posted October 9, 2009 he seemed a little distrested about his homework. Indeed. lol Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now