Any process that modulates the frequency, rate or extent of the process of gaseous exchange between an organism and its environment.