SOUND* name = "filename";
Defines a sound in .wav or .ogg format
to the 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.
Remarks:
Defined sounds are permanently stored in memory and can be played or looped
immediately. For large sounds
to be streamed from a file, sounds in other formats (such as .mp3) and
stereo sounds use the media_play function.
Example:
SOUND* explo_snd = "explo.wav";
...
snd_play(explo_snd,100,0);
See also:
snd_play, media_play
► latest
version online