fixed lastPopOutput null ptr errors for frame loudness check
moved lastpopframeloudness calculation to checkBuffersBeforeFrameSend
updateLastOutputLoudnessAndTrailingLoudness
repetition-with-fade ready for commit