playing wavs

G

Graham R Seach

http://www.pacificdb.com.au/MVP/Code/Sound.htm

....or...

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

Public Sub PlayBeep()
Dim iCtr As Long

For iCtr = 0 To 5000 Step 10
'Play a tone of iCtr hertz, for 50 milliseconds
Call Beep(iCtr, 50)
DoEvents
Next iCtr
End Sub

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia

Microsoft Access 2003 VBA Programmer's Reference
http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764559036.html
 

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

Top