Structure

AVAudio3DPoint

A structure representing a point in 3D space.

Declaration

struct AVAudio3DPoint

Overview

This structure is used by classes dealing with 3D audio, such as those that adopt the AVAudioMixing protocol and the AVAudioEnvironmentNode class. The structure represents a point in 3D space, in meters.

Topics

Defining a Point

init()

Initializes a 3D point instance.

init(x: Float, y: Float, z: Float)

Initializes a 3D point instance with x, y, and z coordinates.

func AVAudioMake3DPoint(Float, Float, Float) -> AVAudio3DPoint

Creates and returns an AVAudio3DPoint object.

Getting Point Properties

var x: Float

The location on the x-axis, in meters.

var y: Float

The location on the y-axis, in meters.

var z: Float

The location on the z-axis, in meters.

See Also

3D Environment Options

class AVAudioEnvironmentDistanceAttenuationParameters

A class that specifies the attenuation distance, the gradual loss in audio intensity, and other characteristics.

class AVAudioEnvironmentNode

A mixer node that simulates a 3D audio environment.

class AVAudioEnvironmentReverbParameters

A class that encapsulates the parameters that you use to control the reverb of the environment node class.

protocol AVAudio3DMixing

A protocol defining 3D mixing properties.

struct AVAudio3DAngularOrientation

A structure representing the angular orientation of the listener in 3D space.

struct AVAudio3DVectorOrientation

A structure representing two orthogonal vectors that describe the orientation of the listener in 3D space.

typealias AVAudio3DVector

A structure representing a vector in 3D space.