Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem sounding wav file
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01231451
Message ID:
01231463
Views:
27
Try this code for playing sounds:
#DEFINE SND_SYNC 0
#DEFINE SND_ASYNC 1
#DEFINE SND_NODEFAULT 2
#DEFINE SND_MEMORY 4
#DEFINE SND_LOOP 8
#DEFINE SND_NOSTOP 16

DECLARE INTEGER sndPlaySound IN winmm;
	STRING lpszSound, INTEGER fuSound

= sndPlaySound("c:\windows\media\tada.wav",;
	SND_ASYNC + SND_NODEFAULT)

*!*	= sndPlaySound("c:\windows\media\chimes.wav",;
*!*		SND_SYNC + SND_NODEFAULT)

*!*	= sndPlaySound("c:\windows\media\chord.wav",;
*!*		SND_SYNC + SND_NODEFAULT)

*!*	= sndPlaySound("c:\windows\media\notify.wav",;
*!*		SND_SYNC + SND_NODEFAULT + SND_NOSTOP)

*!*	= sndPlaySound("c:\program files\icq\icqgreet.wav",;
*!*		SND_ASYNC)
Previous
Reply
Map
View

Click here to load this message in the networking platform