PLAY
PLAY action
Function
The actions allows to play specified music file, or stop playing.
Declaration
PLAY fileToPlay, boolIdent_Bool [LOOPPLAY]
or
PLAY NONEParameters
fileToPlay | in | Identifier of the Txt type - music file to play (e.g. *.wav). |
boolIdent_Bool | out | Identifier of the BOOL type. Playing success. |
LOOPPLAY | in | Optional keyword - cyclic playing. |
NONE | in | Keyword - stop the cyclic playing. |
Example
BOOL _ret
PLAY "hallo.wav", _ret LOOPPLAY
IF _ret THEN
DELAY 10[s]
PLAY NONE
ENDIFRelated pages: