>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!