How to emit alarm sound on computer without soundcard
-
hi all, I want to create a module that play a alarm sound such as "bip" on a server whenever connection down. Many computers, esp servers, don't have sound card. However, they have a mono-speaker inside that make it able to emit simple sound (like the "bip" you hear when you start the computer). I'm looking for a command to play similar sound in visual C++ without the need of a sound card. Can anyone help ?
-
hi all, I want to create a module that play a alarm sound such as "bip" on a server whenever connection down. Many computers, esp servers, don't have sound card. However, they have a mono-speaker inside that make it able to emit simple sound (like the "bip" you hear when you start the computer). I'm looking for a command to play similar sound in visual C++ without the need of a sound card. Can anyone help ?
-
Thanks, it works very well Also, for anyone who could be interested: we could use a simple function to check if sound card exists and then switch between using Beep() or PlaySound() BOOL m_bIsSoundCardExist = (waveOutGetNumDevs() > 0);
-
Thanks, it works very well Also, for anyone who could be interested: we could use a simple function to check if sound card exists and then switch between using Beep() or PlaySound() BOOL m_bIsSoundCardExist = (waveOutGetNumDevs() > 0);
You are welcome. Thanks for the tip. -Saurabh
-
hi all, I want to create a module that play a alarm sound such as "bip" on a server whenever connection down. Many computers, esp servers, don't have sound card. However, they have a mono-speaker inside that make it able to emit simple sound (like the "bip" you hear when you start the computer). I'm looking for a command to play similar sound in visual C++ without the need of a sound card. Can anyone help ?
You may also use MessageBeep((UINT)-1) function. MessageBeep Function on MSDN[^]