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

Function xSndInit

src/SB/Core/x/xSnd.cpp:16–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14static S32 faders_active;
15
16void xSndInit()
17{
18 iSndInit();
19 xSndVoiceInfo* voice = gSnd.voice;
20 for (S32 i = 0; i < 64; i++, voice++)
21 {
22 voice->flags = 0;
23 voice->lock_owner = 0;
24 }
25
26 xSndSceneInit();
27
28 //Need this to only use f0 instead of f1 for 1.0f
29 for (int i = 0; i < 5; i++)
30 {
31 gSnd.categoryVolFader[i] = 1.0f;
32 }
33
34 gSnd.categoryVolFader[2] = 0.7f;
35
36 gSnd.stereo = 1;
37 iSndSuspendCD(1);
38 xSndDelayedInit();
39 reset_faders();
40}
41
42void xSndSceneInit()
43{

Callers 1

iSystemInitFunction · 0.50

Calls 5

iSndInitFunction · 0.85
iSndSuspendCDFunction · 0.85
xSndDelayedInitFunction · 0.85
reset_fadersFunction · 0.85
xSndSceneInitFunction · 0.70

Tested by

no test coverage detected