Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
Precache
Syntax
C++
int Precache(IFunctionHandler * pH, const char * sSoundOrEventName, uint32 nPrecacheFlags);
Parameters 
Description 
uint32 nPrecacheFlags 
Precache flags, specify sound file caching priority.
Precaches the sound data used by a sound definition Depending on additional flags and current settings may load the sound data into the memory for later usage. Precaching is optional, sound system can also play not cached sounds, but it can cause small delay before sound playing starts. 
sGroupAndSoundName 
SoundGroup name of the sound definition or direct filename the sound data should be loaded 

Syntax: Sound.Precache( const char *sGroupAndSoundName, int nPrecacheFlags ) 

Precaches the sound data used by a sound definition Depending on additional flags and current settings may load the sound data into the memory for later usage. Precaching is optional, sound system can also play not cached sounds, but it can cause small delay before sound playing starts.

Copyright (c) 2012. All rights reserved.