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

Method SndKillSounds

src/SB/Game/zNPCTypeCommon.cpp:3194–3208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3192}
3193
3194void zNPCCommon::SndKillSounds(S32 flg_chan, S32 all)
3195{
3196 S32 owner = (S32)this;
3197 if (all != 0)
3198 {
3199 for (S32 i = 0; i < 4; i++)
3200 {
3201 xSndStopChildren(owner + i);
3202 }
3203 }
3204 else
3205 {
3206 xSndStopChildren(owner + (flg_chan & 3));
3207 }
3208}
3209
3210S32 zNPCCommon::SndQueUpdate(F32 dt)
3211{

Callers 2

SndPlayFromSFXMethod · 0.95
ProcessMethod · 0.80

Calls 1

xSndStopChildrenFunction · 0.50

Tested by

no test coverage detected