Re: beep
- From: "Mike Williams" <Mike@xxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 22:40:04 +0100
"Russ" <rwpatterson@xxxxxxx> wrote in message
news:1122571833.688436.222700@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I'm using "beep" to give audible indication to user (VB6).
> How can I make it play through the computers speaker
> - instead of through the sound card?
I'm guessing that you've phrased your question incorrectly. Sounds played
through the sound card usually *are* heard through the computer's speakers
(because the speakers are normally connected to the soundcard's output). I
imagine that you are confusing one or the other with sounds played through
the tiny little speaker built onto the system motherboard, which sounds
extremely naff indeed.
In fact the behaviour of the VB Beep statement (and, incidentally, of the
underlying API Beep function in the Kernel32 DLL) is very system dependent.
On some systems (mostly Win 98 systems and similar) it will play the Windows
default Beep sound through the sound card and main speakers, and on other
systems (mostly WinNT/2K and similar) it plays a nasty little short duration
croaking sound through the tiny little speaker on the system motherboard.
If I were you I would instead use the SndPlaySound API (or other similar
method) to play a wav file, which should reliably play your sound (wav file)
through the speakers using the system's sound card. The problem with this,
of course, is that the user will not hear the sound if he has his speakers
turned down or turned off, but then if that is the case he'll be quite used
to not hearing sounds from his computer, so I wouldn't worry about it ;-)
Mike
.
- Follow-Ups:
- Re: beep
- From: Frank Adam
- Re: beep
- References:
- beep
- From: Russ
- beep
- Prev by Date: Re: Funny OT
- Next by Date: Re: VB code to check POP3 account
- Previous by thread: beep
- Next by thread: Re: beep
- Index(es):
Relevant Pages
|