Playing Sound In the Console

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
To play a simple Beep, use:
 
Beep(DWORD dwFreq,DWORD dwDuration);

Declared in <windows.h>

Where dwFreq is in Hz,
dwDuration is in Milliseconds
cout<<"\a\a\a\a\a\a\a";
Topic archived. No new replies allowed.