Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wave File not Waving
Message
De
08/12/2016 04:35:00
 
 
À
07/12/2016 15:06:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01644671
Message ID:
01644705
Vues:
85
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform