MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / ~SFXFadeModifier

Method ~SFXFadeModifier

Engine/source/sfx/sfxModifier.cpp:120–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118//-----------------------------------------------------------------------------
119
120SFXFadeModifier::~SFXFadeModifier()
121{
122 // If the fade is still ongoing, restore the source's volume.
123 // For fade-in, set to end volume. For fade-out, set to start volume.
124
125 if( isActive() )
126 {
127 if( mStartVolume > mEndVolume )
128 mSource->setVolume( mStartVolume );
129 else
130 mSource->setVolume( mEndVolume );
131 }
132}
133
134//-----------------------------------------------------------------------------
135

Callers

nothing calls this directly

Calls 2

isActiveFunction · 0.70
setVolumeMethod · 0.45

Tested by

no test coverage detected