home *** CD-ROM | disk | FTP | other *** search
- ' Use these API Declarations along with the two sub routines in
- ' form 1 to play different sounds output to the PC speaker.
- ' The routines were taken out of PC Magazine's 'Visual Basic Programmer's
- ' Giude To Windows API'. These are general routines that demonstrate
- ' how to use the API calls. By playing with the Note, Duration, and SoundVal
- ' values you can get different effects.
-
-
- Declare Function StartSound% Lib "Sound" ()
- Declare Function StopSound% Lib "Sound" ()
- Declare Function SetSoundNoise% Lib "Sound" (ByVal nSource%, ByVal nDuration%)
- Declare Function OpenSound% Lib "Sound" ()
- Declare Sub CloseSound Lib "Sound" ()
- Declare Function SetVoiceAccent% Lib "Sound" (ByVal nVoice%, ByVal nTempo%, ByVal nVolume%, ByVal nMode%, ByVal nPitch%)
- Declare Function SetVoiceNote% Lib "Sound" (ByVal nVoice%, ByVal nValue%, ByVal nLength%, ByVal nCdots%)
- Declare Function SetVoiceQueueSize% Lib "Sound" (ByVal nVoice%, ByVal nBytes%)
- Declare Function SetVoiceSound% Lib "Sound" (ByVal nVoice%, ByVal lFrequency&, ByVal nDuration%)
-
-