The speed of sound wave in a given medium is:
Optical density of a medium is directly proportional to its mass density.