Structure

AVAudioSession.Location

Constants that describe the location of the data source on device.

Declaration

struct Location

Topics

Locations

static let lower: AVAudioSession.Location

A value that indicates that the data source is located near the bottom end of the device.

static let upper: AVAudioSession.Location

A value that indicates that the data source is located near the top end of the device.

Orientations

static let orientationFront: AVAudioSession.Location

A data source that points outward from the front of the device, toward the user.

static let orientationBack: AVAudioSession.Location

A data source that points outward from the back of the device, away from the user.

static let orientationLeft: AVAudioSession.Location

A data source that points outward to the left of the device, away from the user.

static let orientationRight: AVAudioSession.Location

A data source that points outward to the right of the device, away from the user.

Polar Patterns

static let polarPatternCardioid: AVAudioSession.Location

A data source that’s most sensitive to sound from the direction of the data source and is nearly insensitive to sound from the opposite direction.

static let polarPatternSubcardioid: AVAudioSession.Location

A data source that’s most sensitive to sound from the direction of the data source and is less sensitive to sound from the opposite direction.

static let polarPatternOmnidirectional: AVAudioSession.Location

A data source that’s equally sensitive to sound from any direction.

Relationships

See Also

Retrieving the Data Source Location

var location: AVAudioSession.Location?

The location of the data source on the device.

Data Source Locations

These values represent the available locations for an audio session data source.