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

Method getPosition

Engine/source/sfx/sfxSound.cpp:518–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516//-----------------------------------------------------------------------------
517
518U32 SFXSound::getPosition() const
519{
520 if( getLastStatus() == SFXStatusStopped)
521 return mSetPositionValue;
522 if( mVoice )
523 return mVoice->getFormat().getDuration( mVoice->getPosition() );
524 else
525 return ( mPlayTimer.getPosition() % mDuration ); // Clamp for looped sounds.
526}
527
528//-----------------------------------------------------------------------------
529

Callers 4

_allocVoiceMethod · 0.45
_releaseVoiceMethod · 0.45
_updateStatusMethod · 0.45
sfxSound.cppFile · 0.45

Calls 2

getDurationMethod · 0.45
getFormatMethod · 0.45

Tested by

no test coverage detected