| Check if the computer supports sound |
Applies To |
|
| OS: VB: |
NT, 9x, 2000 5, 6 |
|
| Add the following to a .BAS, .FRM or .CLS |
|---|
'Place in General declarations
Private Declare Function waveOutGetNumDevs Lib "winmm.dll" () As Long
'Returns True or False indicating whether Sound functions will work
Public Function SoundSupported() As Boolean
SoundSupported = IIf(waveOutGetNumDevs() <> 0, True, False)
End Function