CodeItBetter Programming Another VB Programming Blog

How to check whether your system can play Sound files

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'MultiMedia - How to check whether your system can play Sound files

Option Explicit
 
Declare Function waveOutGetNumDevs Lib "winmm.dll" () As Long
 
Public Sub CheckSound()
    Dim I As Integer
    I = waveOutGetNumDevs()
    If I > 0 Then
        MsgBox "Your system can play sound files."
    Else
        MsgBox "Your system can not play sound files."
    End If
End Sub
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.