MCPcopy Create free account
hub / github.com/demoth/jake2 / RegisterSounds

Method RegisterSounds

client/src/main/java/jake2/client/CL_parse.java:147–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 * ====================== CL_RegisterSounds ======================
146 */
147 public static void RegisterSounds() {
148 S.BeginRegistration();
149 CL_tent.RegisterTEntSounds();
150 for (int i = 1; i < Defines.MAX_SOUNDS; i++) {
151 if (ClientGlobals.cl.configstrings[Defines.CS_SOUNDS + i] == null
152 || ClientGlobals.cl.configstrings[Defines.CS_SOUNDS + i]
153 .equals("")
154 || ClientGlobals.cl.configstrings[Defines.CS_SOUNDS + i]
155 .equals("\0"))
156 break;
157 ClientGlobals.cl.sound_precache[i] = S
158 .RegisterSound(ClientGlobals.cl.configstrings[Defines.CS_SOUNDS
159 + i]);
160 CL.SendKeyEvents(); // pump message loop
161 }
162 S.EndRegistration();
163 }
164
165 /*
166 * ===================== CL_ParseDownload

Callers 2

CLClass · 0.95
RequestNextDownloadMethod · 0.95

Calls 6

BeginRegistrationMethod · 0.95
RegisterTEntSoundsMethod · 0.95
RegisterSoundMethod · 0.95
SendKeyEventsMethod · 0.95
EndRegistrationMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected