Playing Sound In the Console
| 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 | |||
| helios (1519) | |||
| http://www.cplusplus.com/forum/beginner/3589/ http://www.cplusplus.com/forum/windows/1316/ | |||
| Bazzy (539) | |||
To play a simple Beep, use:
Beep(DWORD dwFreq,DWORD dwDuration);Declared in
<windows.h>Where dwFreq is in Hz, dwDuration is in Milliseconds | |||
| BlahBlah (7) | |||
| cout<<"\a\a\a\a\a\a\a"; | |||
This topic is archived - New replies not allowed.
