cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Playing Sound
Playing Sound
Feb 22, 2010 at 9:11pm UTC
EvanEjk
(27)
On a windows computer is there a way to play a beep with a certain pitch for a certain amount of time just like
Beep(2000,1000);
//beep at pitch 2000 for 1000 milliseconds
except
have the sound come out of the speakers plugged into the computer, without having to use an external sound file?
Feb 22, 2010 at 9:42pm UTC
Computergeek01
(5613)
Sure, load the sound driver then pass it raw data until you like the sound it makes. On a Windows machine this will probably require you to do a lot more coding then you want to.
Topic archived. No new replies allowed.