Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Playing music
Message
From
29/08/2004 13:41:49
 
 
To
28/08/2004 09:32:26
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00937285
Message ID:
00937419
Views:
12
>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!

Previous
Reply
Map
View

Click here to load this message in the networking platform