Sound waves and medium density