static public method terminal:alertSound
Brief
Plays a sound.
Declaration | ||
|
Parameters | |
file |
The name of the wav file to be played. |
recurrent |
The boolean flag. In case the parameter is true, the sound will be played multiple times, until the user takes a look at the message. |
Details
Example [hide]
function Init() ... strategy.parameters:addFile("SoundFile", "Sound File to Play", "", ""); strategy.parameters:setFlag("SoundFile", core.FLAG_SOUND); strategy.parameters:addBoolean("RecurrentSound", "Recurrent Sound", "", false); ... end function Update() ... terminal:alertSound(instance.parameters.SoundFile, instance.parameters.RecurrentSound); .. end