Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wave File not Waving
Message
From
08/12/2016 04:35:00
 
 
To
07/12/2016 15:06:42
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01644671
Message ID:
01644705
Views:
84
1.A fullpath to the media is maybe better in function of what folder you are (in your app) !
this works as well:
SET BELL TO (ADDBS(GETENV('windir')))+"MEDIA\NOTIFY.WAV"
?? CHR(7)
it works also with relative path but the media location must exists mandatory.


2.i gave some solutions (4) to play a sound media in this link:

https://www.foxite.com/archives/play-wav-at-startup-0000307363.htm


3.can try also
#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(getfile('wav'),SND_ASYNC + SND_NODEFAULT)  &&fullpath of wav file
Previous
Reply
Map
View

Click here to load this message in the networking platform