SNDPLAY


7.8.5, PLBCMP GUI Only

 

The SNDPLAY instruction plays the sound contained in the sound file. The instruction uses the following format:

 

 

[label]

SNDPLAY

{sndfile}

 

Where:

label

Optional. A Program Execution Label.

sndfile

Required. A previously defined and opened SNDFILE containing sounds played.

Flags Affected: NONE

Note the following:

  1. The SNDPLAY instruction does not finish until the entire sound file has been played.

  2. If the {sndfile} operand does not point to an open sound file, an I701 error is given.

  3. If the {sndfile} operand is open but the file is not a valid sound file, an I604 error is given.

  4. If not enough memory is available to play the sound, an I614 error is given.

  5. This instruction is not supported by the PLB Web Server,

 

 

See Also: Example Code, SNDOPEN, Interactive I/O Instructions

 



PL/B Language Reference SNDOPEN STATERESTORE