Rewrote sample rate test