Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting Soundcard
Message
 
To
15/12/1999 08:47:11
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00303988
Message ID:
00304502
Views:
26
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform