LOAD SOUND This command will load a WAV sound file into the specified Sound Number.
Syntax
    LOAD SOUND Filename,Sound Number
    LOAD SOUND Filename,Sound Number,Flag
    LOAD SOUND Filename,Sound Number,Flag,Silent Fail
    LOAD SOUND Filename,Sound Number,Flag,Silent Fail,Global Sound Flag
Parameters
    Filename
String The file name string
    Sound Number
Integer The number the sound will be loaded into
    Flag
Integer This flag is reserved for future use
    Silent Fail
Integer Set this flag to one to stop all runtime error messages if load fails
    Global Sound Flag
Integer Set this flag to one to play sound even if application does not have focus
Returns
This command does not return a value.
Description
The Sound Number must be an integer value. To load other sound formats, use LOAD MUSIC or in extreme cases LOAD ANIMATION.
Example Code
    cls

    load sound "man.wav",1

    play sound 1

    wait 1000*8

    stop sound 1

    do

    loop

    end
See also
SOUND Commands Menu Index