Speed of sound and depth computations