{{newin|[[11.2]]|112|type=function}}
Sets the amount of air absorption applied to the Source.

By default the value is set to 0 which means that air absorption effects are disabled. A value of 1 will apply high frequency attenuation to the Source at a rate of 0.05 dB per meter.

Air absorption can simulate sound transmission through foggy air, dry air, smoky atmosphere, etc. It can be used to simulate different atmospheric conditions within different locations in an area.

== Function ==
=== Synopsis ===
<source lang="lua">
Source:setAirAbsorption( amount )
</source>
=== Arguments ===
{{param|number|amount|The amount of air absorption applied to the Source. Must be between 0 and 10.}}

=== Returns ===
Nothing.

== Notes ==
Audio air absorption functionality is not supported on iOS.

== See Also ==
* [[parent::Source]]
* [[Source:getAirAbsorption]]
[[Category:Functions]]
{{#set:Description=Sets the amount of air absorption applied to the Source.}}
== Other Languages ==
{{i18n|Source:setAirAbsorption}}