Soun waves can only move through matter, solids, liquids, and gas. This is one of the many reasons why you can hear different sounds. The speed of sound waves does not depend on the source, but on the medium through which they move. There are several factors that affect the speed of sound as it travels in a medium to another. It affects the density, elasticity, and the temperature of the medium. What is density? Density is the compactness of an object. The speed of sound is also affected by air density. Air molecules at higher altitudes are much farther apart. What is a elasticity? Elasticity the ability of an object or material to resume its normal shape after being stretched.