PlaySound |
Top Previous Next |
Prototype
PlaySound(FileName, boolAsync, boolRepeat)
Description
Plays a sound file.
Parameters
FileName: A string containing a valid path and filename.
BoolAsync: logical value true or false. If it is set true, the sound will be executed in asynchronous way while if it is set false the sound will be executed in synchronous way.
BoolRepeat: logical value true or false. If it is set true, the sound will be executed once while if it is set false the sound will be executed always.
Returned value
None.
Notes
May require an audio card.
Example
// Waits for one second Wait (1000);
// Plays the audio file asynchronously PlaySound('c:\sound\error.wav', False, False); |