sample rate meaning logic