MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _onEnd

Method _onEnd

Engine/source/sfx/sfxModifier.cpp:163–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161//-----------------------------------------------------------------------------
162
163void SFXFadeModifier::_onEnd()
164{
165 mSource->setVolume( mEndVolume );
166
167 switch( mOnEnd )
168 {
169 case ON_END_Pause:
170 mSource->pause( 0.f ); // Pause without fade.
171 break;
172
173 case ON_END_Stop:
174 mSource->stop( 0.f ); // Stop without fade.
175 break;
176
177 case ON_END_Nop: ;
178 }
179}
180
181//=============================================================================
182// SFXMarkerModifier.

Callers

nothing calls this directly

Calls 3

setVolumeMethod · 0.45
pauseMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected