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 In the Console
Playing Sound In the Console
Sep 13, 2008 at 7:23am UTC
CheesyBeefy
(80)
Is it possible to play a sound in the console window? Even if it is as simple as a 'beep' or 'bloop' ?
If so, what is the syntax for it?
I am using Visual Studio C++ 2008 Express Edition.
Thanks in advance,
CheesyBeefy
Sep 13, 2008 at 7:26am UTC
helios
(17574)
http://www.cplusplus.com/forum/beginner/3589/
http://www.cplusplus.com/forum/windows/1316/
Sep 15, 2008 at 3:53pm UTC
Bazzy
(6281)
To play a simple Beep, use:
Beep(DWORD dwFreq,DWORD dwDuration);
Declared in
<windows.h>
Where dwFreq is in Hz,
dwDuration is in Milliseconds
Sep 15, 2008 at 10:14pm UTC
BlahBlah
(7)
cout<<"\a\a\a\a\a\a\a";
Topic archived. No new replies allowed.