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

Method _updatePitch

Engine/source/sfx/sfxSound.cpp:496–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494//-----------------------------------------------------------------------------
495
496void SFXSound::_updatePitch()
497{
498 F32 oldEffectivePitch = mEffectivePitch;
499 Parent::_updatePitch();
500
501 if( mVoice != NULL && oldEffectivePitch != mEffectivePitch )
502 mVoice->setPitch( mEffectivePitch );
503}
504
505//-----------------------------------------------------------------------------
506

Callers

nothing calls this directly

Calls 1

setPitchMethod · 0.45

Tested by

no test coverage detected