fix setfrequency to update delaysamples