The AirAbsorption
property of the SoundEvent
class determines whether the sound is subject to air absorption effects. When enabled, the sound will be absorbed by the air, which can affect how it is perceived over distance.
The AirAbsorption
property of the SoundEvent
class determines whether the sound is subject to air absorption effects. When enabled, the sound will be absorbed by the air, which can affect how it is perceived over distance.
To use the AirAbsorption
property, you can set it to true
or false
depending on whether you want the sound to be affected by air absorption. This property is particularly useful in simulating realistic audio environments where sound attenuation due to air is a factor.
// Example of setting the AirAbsorption property SoundEvent mySoundEvent = new SoundEvent(); mySoundEvent.AirAbsorption = true; // Enable air absorption for this sound event // Later in the code, you can check if air absorption is enabled if (mySoundEvent.AirAbsorption) { // Perform actions knowing that air absorption is enabled }