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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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:
A SNDFILE must have been defined with a SNDFILE definition instruction before being referenced in a SNDOPEN, SNDCLOSE, or SNDPLAY instruction.
The ^ denotes a Pointer Variable.
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.
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
![]() |