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

Function iSndUpdateSounds

src/SB/Core/gc/iSnd.cpp:703–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701 info->x18 = 0x40;
702 info->x1c = 0x40;
703 MIXAdjustFader(info->voice, vol - MIXGetFader(info->voice));
704 MIXAdjustPan(info->voice, 0x40 - MIXGetPan(info->voice));
705}
706
707void iSndVolUpdate(xSndVoiceInfo* info, vinfo* vinfo)
708{
709 MIXUnMute(vinfo->voice);
710 xSndInternalUpdateVoicePos(info);
711 if ((info->flags & 8) != 0)
712 {
713 iSndCalcVol3d(info, vinfo);
714 }
715 else
716 {
717 iSndCalcVol(info, vinfo);
718 }
719}
720

Callers

nothing calls this directly

Calls 1

iSndVolUpdateFunction · 0.85

Tested by

no test coverage detected