sound wait -- waits until a sound file is finished playing
SOUND WAIT ID
After the a sound file named Id started playing, use this command to wait until the file finished playing.
id = sound play "bach.mp3", 1
sound wait id
This first loads the file "bach.mp3" and then plays it until it ends.
sound play, sound stop