Wristdoc,
To play a wave file in Paradox, use code like the following (pushButton
is used for this example):
PlaySound Function
The 32-bit counterpart to Mmsystem.dll is WINMM.DLL, and the function is
PlaySound. Here is an example:
Uses WINMM
PlaySound(WavFileName CPTR, how CWORD, flag CWORD)
endUses
methodPushButton(var eventInfo Event)
playSound("C:\\yourDir\\yourFile.wav",0,0)
endMethod
There are several values for Flag. Some of the parameters are:
0 play synchronously
1 play asynchronously
2 silence
4 points to memory file
8 loop the sound until next
16 don't stop any currently playing
This will just play the .wav file without showing any external app.
Hope this helps,
Liz
---
Get the lead out before you reply
Quote:
> I want to create a form which embeds short sound bytes from CD's (i.e. the
> first 5 or so seconds of a song). I've tried the default sound recorder as an
> ole embedded object but get the little play window with controls.
> Is there a simple little sound player which I can embed in my paradox form for
> the user to click and listen. I don't want any controls to pop up, etc. I
> will record my sound bytes as .wav files.
> Thanks,
> wristdoc