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

Function zEntPlayer_SNDPlay

src/SB/Game/zEntPlayer.cpp:5639–5655  ·  view source on GitHub ↗

Equivalent: scheduling

Source from the content-addressed store, hash-verified

5637
5638// Equivalent: scheduling
5639void zEntPlayer_SNDPlay(_tagePlayerSnd player_snd, F32 delay)
5640{
5641 if (globals.cmgr == NULL && !sPlayerIgnoreSound)
5642 {
5643 if (sPlayerSnd[gCurrentPlayer][player_snd])
5644 {
5645 sPlayerSndID[gCurrentPlayer][player_snd] =
5646 xSndPlay(sPlayerSnd[gCurrentPlayer][player_snd], sPlayerSndFxVolume[player_snd],
5647 0.0f, 0x80, 0, 0, SND_CAT_GAME, delay);
5648 if (sPlayerRumbleTime[player_snd] > 0.0f)
5649 {
5650 xPadAddRumble(globals.currentActivePad, sPlayerRumbleType[player_snd],
5651 sPlayerRumbleTime[player_snd], 1, 0);
5652 }
5653 }
5654 }
5655}
5656
5657void zEntPlayer_SNDPlayStream(_tagePlayerStreamSnd player_snd)
5658{

Callers 15

ZDSP_elcb_eventFunction · 0.85
SlipRunCBFunction · 0.85
LandSlipRunCallbackFunction · 0.85
BubbleSpinCBFunction · 0.85
BubbleBashCBFunction · 0.85
BBounceStrikeCBFunction · 0.85
BBounceToJumpCBFunction · 0.85
BbowlCBFunction · 0.85
BbowlTossEndCBFunction · 0.85
SpatulaGrabCBFunction · 0.85
LCopterCBFunction · 0.85
WallJumpCallbackFunction · 0.85

Calls 2

xPadAddRumbleFunction · 0.85
xSndPlayFunction · 0.50

Tested by

no test coverage detected