Check To See If Sound Card Is Present

Click to select the code.  Use Control-C to copy it to your clipboard. Help


The easiest way to find out if a sound card is present on a system is to go ask the winmm.dll about it, as with the isSoundCard function in the example above.  If the value returned is greater than zero, then a sound card is on the system.

Though we show it here with just a button-click test and ShowMessage, a more typical use for this would be in applications that use sound for accents like button clicks or splash screen openers. The isSoundCard function would then be used to check to see if a sound card was available, prior to making a sound call.


Copyright 2001 - 2012 by and OECCorp.
The 2012 Evolution™ is an OEC InterNET Group site.SupportNotices