How can my program play a beep? Besides, what is it possible to play sound with frequency and duration?
Check it for Mac for this window.
#include & lt; Iostream & gt; #include & lt; Windows.h & gt; // WinApi header use namespace std; Int main () {beep (523,500); 523 hectays (C5) for 500 millisecond beep (587,500); Beep (659,500); Beep (698,500); Beep (784,500); Cin.get (); // wait return 0; }
Comments
Post a Comment