/Engine/Source/Runtime/SignalProcessing/Public/DSP/MultithreadedPatching.h
This function call gets the maximum number of samples that's safe to pop, based on the thread with the least amount of samples buffered. Thread safe, but blocks for PopAudio.
int32 MaxNumberOfSamplesThatCanBePopped()