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

Method playOnce

Engine/source/sfx/sfxSystem.cpp:739–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

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
processMethod · 0.45
explodeMethod · 0.45
scheduleThunderMethod · 0.45
advanceTimeMethod · 0.45

Calls 2

push_backMethod · 0.45
playMethod · 0.45

Tested by

no test coverage detected