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

Function zMusicRefreshVolume

src/SB/Game/zMusic.cpp:53–64  ·  view source on GitHub ↗

Reset both music tracks to their default volume.

Source from the content-addressed store, hash-verified

51
52// Reset both music tracks to their default volume.
53void zMusicRefreshVolume()
54{
55 for (S32 i = 0; i < 2; i++)
56 {
57 zMusicTrackInfo* track = &sMusicTrack[i];
58 if (track->snd_id != 0)
59 {
60 // Only reset volume if the sound ID is not blank.
61 xSndSetVol(track->snd_id, volume.cur);
62 }
63 }
64}
65
66void zMusicInit()
67{

Callers 1

WRAP_xsnd_setMusicVolumeFunction · 0.70

Calls 1

xSndSetVolFunction · 0.85

Tested by

no test coverage detected