Added missing check for sample rate difference.