Fixed sample rate change #29