Refraction of Sound Waves. The speed of a wave depends on the elastic and inertia properties of the medium through which it travels. When a wave encounters different medium where the wave speed is different, the wave will change directions.