Mega Code Archive

 
Categories / Delphi / Multimedia
 

Is SoundCard installed

Title: Is SoundCard installed ? Question: How to check if the soundcard is installed ? Answer: The multimedia DLL (winmm.dll) provides a function waveOutGetNumDevs. You can define a external function like this: function IsSoundcardInstalled: longint; stdcall; external 'winmm.dll' name 'waveOutGetNumDevs'; and then use it like this: if IsSoundcardInstalled 0 then ShowMessage('Soundcard is there...');