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

Function zMusicSetVolume

src/SB/Game/zMusic.cpp:475–485  ·  view source on GitHub ↗

This version of it matches 33%. It's also functionally incorrect.

Source from the content-addressed store, hash-verified

473
474// This version of it matches 33%. It's also functionally incorrect.
475void zMusicSetVolume(float vol, float delay)
476{
477 volume.cur = vol; // This makes it introduce the "frsp" instruction.
478 volume.inc = vol - volume.cur;
479
480 if (delay >
481 minDelay) // Doing the if statement likes this makes it generate the "blelr" instruction
482 {
483 volume.inc = vol / delay;
484 }
485}
486
487void zMusicReset()
488{

Callers 6

SpatulaGrabStopCBFunction · 0.85
zEntPlayer_GiveSpatulaFunction · 0.85
zCameraFlyStartFunction · 0.85
start_audio_effectFunction · 0.85
stop_audio_effectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected