Table of Contents | ||
|
||
GetSFXLength | ||
Purpose Returns the length of the sfx clip in milliseconds |
||
Protoype int CSoundMngr::GetSFXLength (string str_sfx) |
||
Parameters
|
||
Description This function queries a sfx object and returns the length of it in milliseconds. The first time this function is used is the slowest, because it has to access an internal engine function to get the clip length. However after that the length is stored in the object itself, and extraction is much speedier since no additional function call is made. |
||
Use CSoundMngr sound; int i_len = sound.GetSFXLength("my_sfx"); |
||
|
||
|