How BEEP on internal speakers, not on sound-card?

M

Michel

How can I sound (beep) the pc internal speaker without the soundcard-out?
Using VBA in MS Excel under Win98se?

Like to warn Excel-user, not the whole room playing online radio.

Thanks.
 
T

Tom Ogilvy

The beep command doesn't work?

the help says:

Sounds a tone through the computer's speaker.
 
H

Harald Staff

Hi

A search on this
http://makeashorterlink.com/?D24E42426
showed among lots of things this:

" In VB, the Beep function calls the Windows Exclamation sound, so if you
have a sound card driver installed, the sound will be emitted by the
sound card.

" If your app is being run under WinNT4, Win2000, or WinXP, you can use the
Beep API function to play a sound using the internal speaker. Win9x does
not support this (like VB's Beep statement, the Beep API function under
Win9x only plays the Default Sound .wav file).

Private Declare Function Beep Lib _
"kernel32" (ByVal dwFreq As Long, _
ByVal dwDuration As Long) As Long

Sub BeepMe()

Dim frequency As Long
Dim duration As Long

frequency = 1600
duration = 500

Call Beep(frequency, duration)

End Sub
 
M

Michel

thanks for these answers,
So there isn't any way to beep the internal speaker of the PC from
within Excel-VBA if you have win98 ?!
:-(
 
M

Michel

I found a internal speaker driver for win98:
http://support.microsoft.com/?kbid=138857

but it doesn't seem to work on my pc! Altough I don't get an error
under the system-hardware-cofiguration, when I go to the property
settings, the test-button is disabled. Booting into DOS is the only
way so far I can heer the beep on the internal speakers! There should
be some assembler (debug) code to do this, but what?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How to tell when Beep sound is done? 2
pc speaker beep?? 6
Sound Card advice 6
Best Soundcard To Use 0
Internal and External Speakers 1
Hidden device "Beep" 1
Beep - how to disable 4
System speaker beep 6

Top