<<

Contents

Search

>>

 

PLAY_SOUND

 

 

Function

 

 

Syntax:

PLAY_SOUND(<Sound File>,<Repeat>)

 

<Sound File>

= <STRING-EXPRESSION>

<Repeat>

= <NUM-EXPRESSION>

 

 

Meaning:

Plays a sound file.

 

PLAY_SOUND returns –1 in the case of an error, otherwise 1.

 

Parameter:

Sound File

Name of the sound file. If <Sound File> = "", the playing of a sound file is stopped immediately.

 

Repeat

= 0: The sound file is played once.

<> 0: The sound file is played again and again until PLAY_SOUND("",0) is executed.

 

Sample:

H% = PLAY_SOUND("C:\WINDOWS\RINGING.WAV",0)

IF H% <> 0

THEN … Error …

ENDIF