PLAY_WAIT

PLAY_WAIT N

PLAYS THE CONTENT OF THE SYSTEM OBJECT NUMBER N (SOUND OR MOVIE) AND WAITS FOR THE END

  • Type: Command
  • Parameter: 1
  • Group: System Objects

ACTION

The command PLAY_WAIT N plays the sound or the movie loaded in the system object designated by its number N.

When it is finished, the program resumes.

SYNTAX: PLAY_WAIT N

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.

USE

  • The command PLAY_WAIT is used to play the file loaded in a system object SOUND or MOVIE by the command FILE_LOAD, suspending the program.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If system object number N does not exist.
  • If system object number N is not of the type : SOUND, MOVIE.

EXAMPLE

rem create a SOUND

sound 1

rem load a sound file

file_load 1,"crack.wav"

rem play the sound

play_wait 1

print "playing is finished"

SEE ALSO

FILE_LOAD

SOUND

MOVIE

PLAY