AVAudioSessionPortDescription Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AVFoundation.framework |
| Availability | Available in iOS 6.0 and later. |
| Declared in | AVAudioSession.h |
Overview
An AVAudioSessionPortDescription object describes an input or output port associated with an audio session. You can use the information in this class to obtain information about the intended usage of the port and the hardware channels it supports.
Properties
channels
An array of channel objects that identify the port’s associated hardware. (read-only)
Discussion
This property contains an array of AVAudioSessionChannelDescription objects. Each one of these objects defines a hardware source or destination associated with the port.
Availability
- Available in iOS 6.0 and later.
Declared In
AVAudioSession.hportName
A descriptive name for the port. (read-only)
Discussion
Availability
- Available in iOS 6.0 and later.
Declared In
AVAudioSession.hportType
The type of the port. (read-only)
Discussion
The value of this property can be any of the constants declared in “Input or Output Port Types”, “Input Port Types”, or “Output Port Types”. These constants define the source or destination of the port.
Availability
- Available in iOS 6.0 and later.
Declared In
AVAudioSession.hUID
A system-assigned unique identifer (UID) for the port. (read-only)
Discussion
The value of this property is assigned to the owningPortUID property of every AVAudioSessionChannelDescription object in the channels property for the port.
Availability
- Available in iOS 6.0 and later.
Declared In
AVAudioSession.hConstants
Input or Output Port Types
Constants that indicate sources for input or output.
NSString *const AVAudioSessionPortBluetoothHFP; NSString *const AVAudioSessionPortUSBAudio;
Constants
AVAudioSessionPortBluetoothHFPSpecifies input or output on a Bluetooth Hands-Free Profile device.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.AVAudioSessionPortUSBAudioSpecifies input or output on a USB device.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.
Input Port Types
Constants that indicate the type of input to the device.
NSString *const AVAudioSessionPortLineIn; NSString *const AVAudioSessionPortBuiltInMic; NSString *const AVAudioSessionPortHeadsetMic;
Constants
AVAudioSessionPortLineInSpecifies line-level input from the dock connector.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.AVAudioSessionPortBuiltInMicSpecifies the built-in microphone on a device.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.AVAudioSessionPortHeadsetMicSpecifies a microphone that is built-in to a wired headset.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.
Output Port Types
Constants that indicate the type of output from the device.
NSString *const AVAudioSessionPortLineOut; NSString *const AVAudioSessionPortHeadphones; NSString *const AVAudioSessionPortBluetoothA2DP; NSString *const AVAudioSessionPortBuiltInReceiver; NSString *const AVAudioSessionPortBuiltInSpeaker; NSString *const AVAudioSessionPortHDMI; NSString *const AVAudioSessionPortAirPlay;
Constants
AVAudioSessionPortLineOutSpecifies line-level output to the dock connector.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.AVAudioSessionPortHeadphonesSpecifies output to a wired headset.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.AVAudioSessionPortBluetoothA2DPSpecifies output to a Bluetooth A2DP device.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.AVAudioSessionPortBuiltInReceiverSpecifies output to the speaker that you hold to your ear. Typically, this speaker is available only on iPhone devices.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.AVAudioSessionPortBuiltInSpeakerSpecifies output to the device’s built-in speaker.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.AVAudioSessionPortHDMISpecifies output to a device via the High-Definition Multimedia Interface (HDMI) specification.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.AVAudioSessionPortAirPlaySpecifies output to a remote device over AirPlay.
Available in iOS 6.0 and later.
Declared in
AVAudioSession.h.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-09-19)