|
-
Aug 15th, 2002, 12:28 PM
#1
Thread Starter
Frenzied Member
Sound Card
Anyone know how to detect whether or not a PC has a sound card installed?
-
Aug 15th, 2002, 12:29 PM
#2
VB Code:
Private Declare Function waveOutGetNumDevs Lib "winmm" () As Long
Private Declare Function midiOutGetNumDevs Lib "winmm" () As Integer
Private Const AUDIO_NONE = 0
Private Const AUDIO_WAVE = 1
Private Const AUDIO_MIDI = 2
Private Function HasSoundCard() As Boolean
Dim i As Integer
Dim CanPlaySound As Integer
i = AUDIO_NONE
If waveOutGetNumDevs > 0 Then
i = AUDIO_WAVE
End If
If midiOutGetNumDevs > 0 Then
i = i + AUDIO_MIDI
End If
CanPlaySound = i > 0
MsgBox HasSoundCard
End Function
-
Aug 15th, 2002, 02:14 PM
#3
Thread Starter
Frenzied Member
Thanks Hack. Do you know how I can get some information on the sound card if it is present?
-
Aug 15th, 2002, 02:18 PM
#4
-
Aug 15th, 2002, 02:28 PM
#5
Thread Starter
Frenzied Member
Hey Hack, that link you gave me timed out. It said "Bad Gateway".
-
Aug 15th, 2002, 02:29 PM
#6
Son of a gun...you are try.
Try again later. I know that is a good link. They may be having problems with their Server at the moment.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|