| 770 | //----------------------------------------------------------------------------- |
| 771 | |
| 772 | void SFXController::_updatePitch() |
| 773 | { |
| 774 | F32 oldEffectivePitch = mEffectivePitch; |
| 775 | Parent::_updatePitch(); |
| 776 | |
| 777 | if( mEffectivePitch != oldEffectivePitch ) |
| 778 | for( U32 i = 0; i < mSources.size(); ++ i ) |
| 779 | { |
| 780 | Source& source = mSources[ i ]; |
| 781 | if( source.mPtr != NULL ) |
| 782 | source.mPtr->setModulativePitch( mEffectivePitch * source.mPitchScale ); |
| 783 | else |
| 784 | { |
| 785 | mSources.erase( i ); |
| 786 | -- i; |
| 787 | } |
| 788 | } |
| 789 | } |
| 790 | |
| 791 | //----------------------------------------------------------------------------- |
| 792 |
nothing calls this directly
no test coverage detected