MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / set_volume

Function set_volume

src/SB/Game/zEntPlayerBungeeState.cpp:244–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242 }
243 }
244 static void set_volume(S32 which, F32 new_vol)
245 {
246 const sound_group& sg = sound_groups[which];
247 if (sg.first > sg.last)
248 {
249 return;
250 }
251 if (sg.streamed)
252 {
253 return;
254 }
255 for (S32 i = sg.first; i <= sg.last; ++i)
256 {
257 zEntPlayer_SNDSetVol((_tagePlayerSnd)i, new_vol);
258 }
259 }
260 static void init_models()
261 {
262 shared.root_model = globals.player.ent.model;

Callers

nothing calls this directly

Calls 1

zEntPlayer_SNDSetVolFunction · 0.85

Tested by

no test coverage detected