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

Method setPosition

Engine/source/sfx/sfxSound.cpp:530–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528//-----------------------------------------------------------------------------
529
530void SFXSound::setPosition( U32 ms )
531{
532 AssertFatal( ms < getDuration(), "SFXSound::setPosition() - position out of range" );
533 mSetPositionValue = ms;
534
535 if( mVoice )
536 mVoice->setPosition( mVoice->getFormat().getSampleCount( ms ) );
537 else
538 mPlayTimer.setPosition( ms );
539}
540
541//-----------------------------------------------------------------------------
542

Callers 3

_allocVoiceMethod · 0.45
_releaseVoiceMethod · 0.45
sfxSound.cppFile · 0.45

Calls 2

getSampleCountMethod · 0.45
getFormatMethod · 0.45

Tested by

no test coverage detected