Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Play sound
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00555354
Message ID:
00555482
Vues:
14
>Hi
>
>Which is the fast method to play a sound within a form or procedure?
>
>TIA
PROCEDURE Playsound
PARAMETERS cWavFile

If IsNull(cWavFile)
Return .f.
EndIf

Declare Integer mciSendString IN WINMM String sendstr, Integer retstr, Integer szret, Integer callback

mciSendString("open " + FullPath(cWavfile) + " type waveaudio alias mmwav", 0, 0, 0)
mciSendString("play mmwav wait", 0, 0, 0)
mciSendString("close mmwav", 0, 0, 0)

Return .t.

ENDPROC
HTH

Alonso
Like Frank said: "I did it... MY WAY!"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform