update sample rate