The delay buffer now resizes on sample rate change.
tidy up formatting