For an easier way of detecting if a system have a device capable of playing a WAVE File, you may try this API function:
*-- Return number of devices with WAVE playing capability
Declare Integer waveOutGetNumDevs IN WINMM
nDev = waveOutGetNumDevs()
If nDev>0 && Then you can play Wave
...
>I'm trying to use Registry.vcx from the file section to detect whether a soundcard is installed on a given system, to allow me to play a wave file during heads-down data entry. I looked at the HKey_Local_Machine hive and located a soundcard using the following code snipet:
>
Just an opinion... Not a fact.