Speed of sound in different media