It's dependent on the speed of sound, which is only dependent on temperature, not specifically altitude contrary to popular belief.