Improved peakfilter buffer swapping