A driving mechanism (7) moves a common compression device (4) like a piston in a pendulum fashion so that a gas is fed through a first compression chamber (1) and pressure variations are impressed on cubic contents of gas via a second compression chamber (5), where the driving mechanism fits. Available chamber capacity is utilized by a compressor as necessary.