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

Function GEC_dfltSound

src/SB/Game/zGameExtras.cpp:456–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456void GEC_dfltSound()
457{
458 static U32 aid_sndList[7] = {};
459 static signed char init;
460
461 if (!init)
462 {
463 // Fun hack.
464 // FIXME: See if we can figure out why HB01 is in the string table here.
465 aid_sndList[0] = xStrHash("HB01\0"
466 "SBG01030" +
467 5);
468 aid_sndList[1] = xStrHash("HB01\0"
469 "SBG01030" +
470 5);
471 aid_sndList[2] = xStrHash("HB01\0"
472 "SBG01030" +
473 5);
474 aid_sndList[3] = xStrHash("SBG01017_a");
475 aid_sndList[4] = xStrHash("SBG01017_b");
476 aid_sndList[5] = xStrHash("SBG01018");
477 aid_sndList[6] = xStrHash("SBG01016");
478
479 // typical scheduling memes
480 init = 1;
481 }
482
483 U32 snd = xUtil_choose(aid_sndList, 7, NULL);
484
485 if (snd)
486 {
487 xSndPlay(snd, 1.0f, 0.0f, 0x80, 0, 0, SND_CAT_GAME, 0.0f);
488 }
489}
490
491void GEC_cb_AddShiny()
492{

Callers 4

GEC_cb_ExpertModeFunction · 0.85
GEC_cb_ShrapBobModeFunction · 0.85
GEC_cb_SwapCCLRFunction · 0.85
GEC_cb_SwapCCUDFunction · 0.85

Calls 3

xUtil_chooseFunction · 0.85
xStrHashFunction · 0.50
xSndPlayFunction · 0.50

Tested by

no test coverage detected