Prototype
PlaySound(FileName, boolAsync, boolRepeat)
Description
It reproduces a sound stored in the shown file.
Parameters
FileName: string containing the path and name of the file audio to execute.
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
In order that sound is executed it needs an audio card.
Example
// It waits a second
Wait (1000);
// It reproduces the audio file in asynchronous way just once
PlaySound('c:\sound\error.wav', False, False);