Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Playing music
Message
De
29/08/2004 13:41:49
 
 
À
28/08/2004 09:32:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00937285
Message ID:
00937419
Vues:
10
>Has anyone used the playsound component/class in VFP 8? I need an example of how to get it to play an mp3 or wave.
>
>Thanks
>
>Grady
First shot would be sndPlaySound MMSystem API function.
Declare Long sndPlaySound IN "winmm.dll" String @ lpszSoundName, Long uFlags
FileName = Addbs(GetEnv("windir"))+"media\tada.wav"
sndPlaySound(@FileName, 1)
Note that this way you cannot play mp3 files. To play mp3 files DirectSound should be utilized or Windows Media Player ActiveX control.
Let me know whether you insist on paying mp3 files. I would try to port a DirectSound demo from Visual Basic to Visual FoxPro
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform