Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting Soundcard
Message
 
À
15/12/1999 08:47:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00303988
Message ID:
00304502
Vues:
25
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform