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

Method playOnce

Engine/source/sfx/sfxSystem.cpp:736–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734//-----------------------------------------------------------------------------
735
736SFXSource* SFXSystem::playOnce( SFXTrack* track,
737 const MatrixF *transform,
738 const VectorF *velocity,
739 F32 fadeInTime )
740{
741 // We sometimes get null profiles... nothing to play without a profile!
742 if( !track )
743 return NULL;
744
745 SFXSource *source = createSource( track, transform, velocity );
746 if( source )
747 {
748 mPlayOnceSources.push_back( source );
749 source->play( fadeInTime );
750 }
751
752 return source;
753}
754
755//-----------------------------------------------------------------------------
756

Callers 15

playSoundMethod · 0.45
processMethod · 0.45
playSoundMethod · 0.45
processMethod · 0.45
sfxSystem.cppFile · 0.45
updateMethod · 0.45
processTickMethod · 0.45
updatePosMethod · 0.45
updateMoveMethod · 0.45
playFootstepSoundMethod · 0.45
playImpactSoundMethod · 0.45
createSplashMethod · 0.45

Calls 2

push_backMethod · 0.45
playMethod · 0.45

Tested by

no test coverage detected