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

Method _play

Engine/source/sfx/sfxController.cpp:687–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685//-----------------------------------------------------------------------------
686
687void SFXController::_play()
688{
689 Parent::_play();
690
691 // Unpause sources, if we are paused.
692
693 if( mStatus == SFXStatusPaused )
694 {
695 for( U32 i = 0; i < mSources.size(); ++ i )
696 if( mSources[ i ].mPtr != NULL )
697 mSources[ i ].mPtr->play( 0.f ); // We want our fade values to take effect.
698 else
699 {
700 mSources.erase( i );
701 -- i;
702 }
703 }
704}
705
706//-----------------------------------------------------------------------------
707

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
playMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected