PHASEDistanceModelFadeOutParameters
A distance over which the framework fades out sound.
Declaration
class PHASEDistanceModelFadeOutParametersOverview
For spatial sound output, the framework stops playing a sound when its distance from the listener surpases cullDistance. The framework gradually fades out the sound’s volume as the distance between the source and listener approaches cullDistance. Likewise, the framework gradually fades in the sound as the distance between the source and listener approaches 0. A PHASEDistanceModelParameters object provides an instance of this class to a spatial mixer; for more information, see fadeOutParameters.
Specifying a Maximum Distance That Sound Reaches
The following code demonstrates a spatial mixer’s additional fade out. By setting fadeOutLength to 1.0, the framework begins to fade out a sound after its distance to the listener surpases 1.0.