Re: beep



"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



.



Relevant Pages

  • Re: beep
    ... >underlying API Beep function in the Kernel32 DLL) is very system dependent. ... >On some systems it will play the Windows ... >default Beep sound through the sound card and main speakers, ... >through the speakers using the system's sound card. ...
    (comp.lang.basic.visual.misc)
  • Re: Practice wankery
    ... I know damned good and well that you can play. ... if your speakers and amp handle it.. ... it rattles the speakers with bass if I crank the bass too ... the sound card.. ...
    (alt.guitar)
  • Re: sound files
    ... computers through my speakers but will not play wma files i receive ... an error saying its either being used by another program or check ... cd in both cd and dvd players will not play how does one check to see ... You probably need to download the latest sound card driver from the ...
    (microsoft.public.windows.server.general)
  • Re: No sounds
    ... >it's not my speakers or as far as I know my sound card ... I can play music ... double click the Vol control icon to get ...
    (microsoft.public.windowsxp.general)
  • no sound is it my sound card?
    ... hi my speakers are working fine as the alert sounds are working but i can't ... play a CD or any music because it says that there is a fault. ... i have a sound card and the sound was working ...
    (microsoft.public.windowsmedia.player)