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

Method _pause

Engine/source/sfx/sfxController.cpp:708–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706//-----------------------------------------------------------------------------
707
708void SFXController::_pause()
709{
710 Parent::_pause();
711
712 // Pause all playing sources.
713
714 for( U32 i = 0; i < mSources.size(); ++ i )
715 if( mSources[ i ].mPtr != NULL )
716 mSources[ i ].mPtr->pause( 0.f ); // We want our fade values to take effect.
717 else
718 {
719 mSources.erase( i );
720 -- i;
721 }
722}
723
724//-----------------------------------------------------------------------------
725

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
pauseMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected