Go to the source code of this file.
Functions | |
void | S_SetSampleRepeatRate (int sampleRepeatRate) |
Controls the repeat rate for the same sample. | |
void | S_LoadSamples (void) |
void | S_FreeSamples (void) |
Definition in file s_sample.h.
void S_FreeSamples | ( | void | ) |
Definition at line 135 of file s_sample.c.
References s_sample_s::chunk, s_sample_s::hashNext, i, Mem_Free, s_sample_s::name, next, and SAMPLE_HASH_SIZE.
Referenced by S_Shutdown().
void S_LoadSamples | ( | void | ) |
Definition at line 161 of file s_sample.c.
References fireDef_s::bounceSound, cls, csi, objDef_s::fd, fireDef_s::fireSound, fireDef_s::hitBodySound, i, fireDef_s::impactSound, s_env_s::initialized, INVSH_GetItemByIDX(), objDef_s::numFiredefs, csi_s::numODs, objDef_s::numWeapons, s_env, S_LoadSample(), SOUND_WATER_IN, SOUND_WATER_MOVE, SOUND_WATER_OUT, and client_static_s::soundPool.
Referenced by CL_InitAfter(), and S_Restart_f().
void S_SetSampleRepeatRate | ( | int | sampleRepeatRate | ) |
Controls the repeat rate for the same sample.
[in] | sampleRepeatRate | milliseconds that must have passed to play the same sample again |
Definition at line 36 of file s_sample.c.
References s_env, and s_env_s::sampleRepeatRate.
Referenced by MS_LoadXML().