C
CSharp
C++
Java
Visual Basic
HTML - CSS
Android
Asp
Asp.Net
Php
Python
JavaScript
SQL
XML
Assembly
ActiveX
API
Code Snippets
Database
Files Directories Drives
Forms
Graphics Games
Multimedia
Strings
Windows and Controls
More...
Visual Basic > Multimedia Animation and Sound sample source codes
Visual Basic Code > How to detect if a sound card exists on a system.
How to detect if a sound card exists on a system. 'Note: This has only been tested with VB 3 and VB 4-16, if you convert ' Declare this API Declare Function auxGetNumDevs% Lib "MMSYSTEM" () ' In the appropriate routine: Dim i As Integer i = auxGetNumDevs() If i > 0 Then ' There is at least one sound card on the system MsgBox "A Sound Card has been detected." Else ' auxGetNumDevs returns a 0 if there is no sound card MsgBox "There is no Sound Card on this system." End If
Privacy Policy
|
Contact
|
Advertising
|
Link to Us
|
Directory