An object that defines a data source for an audio input or output, giving information such as the source’s name, location, and orientation.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
You obtain data source descriptions from the shared
AVAudio object or the
AVAudio objects corresponding to its input and output ports. Only built-in microphone ports on certain devices support the location, orientation, and polar pattern properties. If a port doesn’t support these features, the value of its
data property is
This class is especially useful for differentiating between microphone configurations on devices having more than one built-in microphone. Such devices may also support signal processing features for spatial filtering, or beamforming, in which the system makes the device more sensitive to audio signals from a particular direction. See Data Source Polar Patterns for more information.