SNDFILE


PLBCMP GUI Only

 

The SNDFILE instruction defines sound files that may be played to reproduce a sound or music on the computer. It uses one of the following formats:

 

(1)

[label]

SNDFILE

 

(2)

[label]

SNDFILE

^

(3)

[label]

SNDFILE

%

(4)

[label]

SNDFILE

%%

 

Where:

label

Optional. A Program Execution Label.

^

Optional. Denotes the item as being a POINTER.

%

Optional. Denotes the item as being GLOBAL.

%%

Optional. Denotes the item as GLOBAL but does not initialize it in any way.

Flags Affected: NONE

Note the following:

  1. A SNDFILE must have been defined with a SNDFILE definition instruction before being referenced in a SNDOPEN, SNDCLOSE, or SNDPLAY instruction.

  2. The ^ denotes a Pointer Variable.

  3. If the % form is used, the data item is placed in the Global Data Area. The variable would be available to other programs that also declared it with the percent form. GLOBAL are available with PLBCMP only.

  4. If the %% form is used, the data label is placed in the Global Data Area but no initialization takes place if it has not already been defined in the Global Data Area. Global Data Items are available with PLBCMP only.

 

 

See Also: Example Code, File Definitions, Interactive I/O Instructions

 



PL/B Language Reference PFILE XFILE