Sound wave passes though air under adiabatic conditions. There will be heating at compressions and cooling at rarefactions. But the heat content of the medium will remain constant. That is, when a sound wave is passing through an air column, during the consequent compression and rarefaction total amount of heat remains constant.