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

Method getPosition

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

Source from the content-addressed store, hash-verified

510//-----------------------------------------------------------------------------
511
512U32 SFXSound::getPosition() const
513{
514 if( mVoice )
515 return mVoice->getFormat().getDuration( mVoice->getPosition() );
516 else
517 return ( mPlayTimer.getPosition() % mDuration ); // Clamp for looped sounds.
518}
519
520//-----------------------------------------------------------------------------
521

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