Contents

PHASEMixerParameters

An object that specifies a mixer for sound events and orients them in 3D space.

Declaration

class PHASEMixerParameters

Mentioned in

Overview

This class orients a sound event in 3D space relative to a listener. When you configure an ambient mixer’s orientation and a listener’s orientation, PHASE lowers the volume of the sound event if the two orientations point away from each other, and plays the sound at full volume if they point at each other. To add an instance of this class to a sound event, use the mixerParameters argument of a sound event’s init(engine:assetIdentifier:mixerParameters:) initializer.

Alternatively, PHASE can adjust a sound event’s loudness based on its distance from the listener in 3D space. By calling this class’s addSpatialMixerParameters(identifier:source:listener:) function, you supply a sound source that defines the location. For more information, see Spatial Mixing.

Ambient sound events define only a listener and play with a consistent loudness, regardless of the listener’s position in the scene. To define a listener and select a particular ambient mixer that outputs the sound, call this class’s addAmbientMixerParameters(identifier:listener:) function.

Topics

Positioning and Orienting Audio

See Also

Soundscape Creation