PLAY action


Function
The actions allows to play specified music file, or stop playing.
Declaration
 PLAY fileToPlay, boolIdent_Bool [LOOPPLAY]
 
or
 
PLAY NONE
Parameters
fileToPlayinIdentifier of the Txt type - music file to play (e.g. *.wav).
boolIdent_BooloutIdentifier of the BOOL type. Playing success.
LOOPPLAYinOptional keyword - cyclic playing.
NONEinKeyword - stop the cyclic playing.
Example
BOOL _ret
 
 PLAY "hallo.wav", _ret LOOPPLAY
 IF _ret THEN
   DELAY 10[s]
   PLAY  NONE
 ENDIF

Related pages:

Napíšte komentár