Contents

fadeOutParameters

A distance over which the framework fades out the mixer’s sound.

Declaration

var fadeOutParameters: PHASEDistanceModelFadeOutParameters? { get set }

Discussion

As a sound source’s distance between the listener approaches the value of this property, the framework gradually lowers the sound’s volume to 0. Beyond this distance, PHASE culls the sound. This property offers an additional fade out that the framework applies on top of the spatial mixer’s distanceModelParameters.

The framework calculates distance as the difference between the listener’s position and the sound-source position, scaled by the engine’s unitsPerMeter.