An air delivery system includes an air flow generator to provide a pressurized flow of air, a patient interface to provide a seal with the patient's face in use, an air delivery conduit to interconnect the air flow generator and the patient interface, and a controllable vent valve to control venting from the patient interface. The vent valve is controlled to maintain a substantially constant air flow in the air delivery conduit and the air flow generator.