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

Method _pause

Engine/source/sfx/sfxController.cpp:706–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
pauseMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected