Detecting a Sound Card

To find out if a system can play WAV output, call the Windows API function
waveOutGetNumDevs and see if the result is greater than zero.

The waveOutGetNumDevs function retrieves the number of waveform-audio output
devices present in the system.

UINT waveOutGetNumDevs(VOID);

Parameters

This function takes no parameters.

Return Values

Returns the number of devices. A return value of zero means that no devices are
present or that an error occurred.

In article <01bce044$b34d0b20$5584d9cf@mickey>, jsqu...@earthlink.net says...

Quote

>Is there an accurate way of detecting the existance of a sound card in a
>Windows 95/NT system before attempting to play a WAV media clip
>(tmediaplayer)?