PLAY action


Function
The actions allows to play specified music file, or stop playing.
Declaration
 PLAY fileToPlay, boolIdent_Bool [LOOPPLAY]

 
or
 
PLAY NONE

Parameters
fileToPlay in Identifier of Txt type - music file to play (e.g. *.wav).
boolIdent_Bool out Identifier of BOOL type. Playing success.
LOOPPLAY in Optional key word - cyclic playing.
NONE in Key word - 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