PLAYSOUND function
Plays a sound file or system sound.
Syntax
PLAYSOUND("filename"|"alias",isAlias,beep,synch) | |
filename |
The name of the sound file you want to play. |
alias |
A system sound represented by an alias. |
isAlias |
Specifies whether the preceding expression is an alias or file name; use a non-zero value to specify an alias. |
beep |
Specifies whether Microsoft Visio beeps when sound can't be played; use a non-zero number to beep. |
synch |
Determines whether sounds are played asynchronously (0) or synchronously (1). |
Remarks
Sounds should usually be played asynchronously so Visio can continue processing while the sound is being played. To string several sounds together, play them synchronously or some might fail to play.
Example 1
PLAYSOUND("chord.wav", 0, 0, 0)
Plays the wave audio file chord.wav asynchronously with no warning beep.
Example 2
PLAYSOUND("SystemExclamation", 1, 0, 0)
Plays the system exclamation sound asynchronously with no warning beep.