SOUND* name = "filename";

Defines a DirectSound object from a .wav or .ogg sound file with the given name. Sample rates of 11, 22, or 44 kHz and 8 or 16 bit mono are supported.

Parameters:

"filename" - name of the .wav or .ogg sound file, or "#nnn" for a 440 Hz sine wave sound of nnn seconds duration.

Remarks:

Example:

SOUND* explo_snd = "explo.wav"; 

function main()
{
  snd_play(explo_snd,100,0);
}

See also:

snd_create, snd_buffer, snd_play, media_play

► latest version online