PrecacheSound Function

Precaches a given sound.

bool PrecacheSound(const char[] sound, bool preload)

Parameters

const char[] sound

Name of the sound to precache.

bool preload

If preload is true the file will be precached before level startup.

Return Value

True if successfully precached, false otherwise.