Sound waves in a nonequilibrium molecular gas