A unified framework for integrating compressible and soundproof PDEs of atmospheric dynamics