Making computer sound a specific tone

  • Thread starter Thread starter John S. Ford, MD
  • Start date Start date
J

John S. Ford, MD

I'm familiar with the beep function but is there any function that enables
you to determine the pitch and duration of a tone produced by the computer's
speaker?

John
 
The API call to the beep function can accomplish this, but be warned, it
only works on NT-based OS's, NT4, 2000, XP and 2003

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
* "John S. Ford said:
I'm familiar with the beep function but is there any function that enables
you to determine the pitch and duration of a tone produced by the computer's
speaker?

For NT systems:

\\\
Private Auto Declare Sub Beep Lib "kernel32.dll" ( _
ByVal dwFreq As Int32, _
ByVal dwDuration As Int32 _
)
///
 
Back
Top