DelphiFAQ Home Search:

Detect whether there is a sound card installed

 

comments3 comments. Current rating: 5 stars (1 votes). Leave comments and/ or rate it.

If you need to detect whether there is a sound card installed, your application may call the function 'waveOutGetNumDevs' from the multimedia DLL (winmm.dll, part of a standard installation).

// declare by a nicer functionname..
function SoundCardInstalled : longint; stdcall; 
  external 'winmm.dll' name 'waveOutGetNumDevs';

// use like this..
if SoundCardInstalled > 0 then
  Showmessage('A sound card was found.');

Comments:

2008-02-22, 19:28:51
anonymous from Cameroon  
very nice site. love it
2008-02-22, 19:29:30
anonymous from Cameroon  
get
2008-11-03, 09:23:47
anonymous  
rating
Very easy and helpful... Thanks a lot !

Keywords:

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Los Angeles, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.