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

Method _stop

Engine/source/sfx/sfxController.cpp:726–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724//-----------------------------------------------------------------------------
725
726void SFXController::_stop()
727{
728 Parent::_stop();
729
730 // Stop all playing sources.
731
732 while( !mSources.empty() )
733 {
734 if( mSources.last().mPtr != NULL )
735 mSources.last().mPtr->stop( 0.f ); // We want our fade values to take effect.
736 mSources.decrement();
737 }
738
739 // Reset execution.
740
741 mIp = 0;
742 if( !mInsns.empty() )
743 _initInsn();
744}
745
746//-----------------------------------------------------------------------------
747

Callers

nothing calls this directly

Calls 4

decrementMethod · 0.80
emptyMethod · 0.45
lastMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected