If audio does not need to be resampled exactly to the specified frequency (but close), can set a new new_freq such that there is a large GCD between orig_freq and new_freq
UPPER_CLAMP and LOWER_CLAMP should also be dynamically set (from within a range) such that they yield large GCD