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

Function set_pitch

src/SB/Game/zEntCruiseBubble.cpp:282–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 }
281
282 void set_pitch(S32 which, F32 pitch, U32 handle)
283 {
284 sound_config* s = &sounds[which];
285
286 if (s->id == 0)
287 {
288 for (S32 i = s->first; i <= s->last; ++i)
289 {
290 zEntPlayer_SNDSetPitch((_tagePlayerSnd)i, pitch);
291 }
292 return;
293 }
294
295 if (handle == 0)
296 {
297 handle = s->handle;
298 }
299
300 if (handle != 0)
301 {
302 xSndSetPitch(handle, pitch);
303 }
304 }
305
306 void show_wand()
307 {

Callers 1

update_engine_soundMethod · 0.85

Calls 2

zEntPlayer_SNDSetPitchFunction · 0.85
xSndSetPitchFunction · 0.85

Tested by

no test coverage detected