/Engine/Source/Runtime/SignalProcessing/Public/DSP/SpectrumAnalyzer.h
You can call this function to ensure that you're sampling the same window of frequency data, Then call UnlockOutputBuffer when you're done. Otherwise, GetMagnitudeForFrequency and GetPhaseForFrequency will always use the latest window of frequency data.
void LockOutputBuffer()