Defined in:Loads a sound resource into a
SoundResult LoadSound(const char *name);
||The name of the sound resource.|
LoadSoundfunction loads the sound resource specified by the
nameparameter into memory.
A sound resource loaded into memory with the
LoadSoundfunction must contain fewer than 221 frames of audio data. For a mono sound, this means that the audio data must be smaller than 4 MB in size, and for a stereo sound, the audio data must be smaller than 8 MB in size. If this limit is exceeded, then the
A sound is made nonpersistent when the
LoadSoundfunction is called, meaning that it will destroy itself once it has finished playing.