VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Beep

Kevin Bowker  (2 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

Uses the 'Beep' function of the API to produce sound.

Inputs
dwFreq, dwDuration (API).

Assumes
A Standard EXE Project, with 1 form (any name) Textboxes: txtFreq, txtDur, txtInterval Command Buttons: cmdPlay,cmdCycle, cmdExit Labels (Array): Label1 (0-2) Checkboxes: Check1 Timer Controls: Timer1, Timer2

Returns
Sound from the internal speaker.

Side Effects
None.

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

Rate Beep (4(4 Vote))
Beep.bas

Beep Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters