AVAudioEnvironmentNode
An object that simulates a 3D audio environment.
Declaration
class AVAudioEnvironmentNodeOverview
The AVAudioEnvironmentNode class is a mixer node that simulates a 3D audio environment. Any node that conforms to AVAudioMixing can act as a source node, such as AVAudioPlayerNode.
The environment node has an implicit listener. You set the listener’s position and orientation, and the system then controls the way the user experiences the virtual world.
To help characterize the environment, this class defines properties for distance attenuation and reverberation.
AVAudio3DMixingSourceMode affects how inputs with different channel configurations render. Spatialization applies only to inputs with a mono channel connection format. This class doesn’t spatialize stereo inputs or support inputs with connection formats of more than two channels.
To set the node’s output to a multichannel format, use an AVAudioFormat that has one of the following Audio Channel Layout Tags:
Topics
Creating an Environment Node
Getting and Setting Positional Properties
Getting Attenuation and Reverb Properties
Getting and Setting Environment Properties
Getting the Available Rendering Algorithms
Getting the Head Tracking Status
Getting the Input Bus
See Also
Spatial audio
AVAudioEnvironmentDistanceAttenuationParametersAVAudioEnvironmentReverbParametersAVAudio3DMixingAVAudio3DPointAVAudio3DVectorOrientationAVAudio3DAngularOrientationAVAudio3DMixingSourceModeAVAudio3DMixingRenderingAlgorithmAVAudioEnvironmentOutputTypeAVAudio3DMixingPointSourceInHeadModeAVAudio3DVector