Главная страница | назад





Article #17413: How do I tell if a sound card is installed?

 Question and Answer Database
FAQ2413C.txt How do I tell if a sound card is installed?
Category :Windows API
Platform :All
Product :C++Builder 3.x
Question:
How do I tell if a sound card is installed?
Answer:
You can make a call to the MultiMedia API function
WaveOutGetNumDevs().
Example:
#include 
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if(waveOutGetNumDevs()> 0)
ShowMessage("Sound Card is installed");
else
ShowMessage("Sound Card is not installed");
}
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99