Excitation of pressure modes in common envelopes