Thank you for your replies. I tried that earlier. The problem with
this method is that the beep is sounded via the internal PC speaker,
not the external speakers, and the quality is very bad.
Does anyone know how to get the sound to come out of the external
speakers?
At web site
http://ccrma.stanford.edu/CCRMA/Courses/422/projects/WaveFormat/
is a description of the layout of a .wav file. You could generate such a
structure with digitized sinusoid values in the 'data' area, and feed that
data to
Private Declare Function PlaySound Lib "winmm" Alias "PlaySoundA" ( _
ByVal pszSound() As Byte, _
ByVal hMod As Integer, _
ByVal fdwSound As Integer) _
As Integer
Use 0 for hMod, and use &h4 for fdwSound (constant SND_MEMORY). Pass the
wave array you build in pszSound.
Sounds like some effort, but it should work.