PlanetKitAudioDevice
public class PlanetKitAudioDevice : NSObject
The audio device used by PlanetKit.
-
The ID of the audio device.
Declaration
Swift
@objc public private(set) var deviceID: AudioDeviceID { get }
-
The number of input channels supported by the audio device.
Declaration
Swift
@objc public private(set) var inputChannelCount: UInt32 { get }
-
The number of output channels supported by the audio device.
Declaration
Swift
@objc public private(set) var outputChannelCount: UInt32 { get }
-
Gets the persistent identifier for the audio device.
Declaration
Swift
@objc public var uid: String? { get }
-
Queries the most valid name of the audio device.
Remark
The name can be one of the input data source or the output data source, or it can bedeviceName
.Declaration
Swift
@objc public var name: String? { get }
-
Gets the human-readable name of the audio device.
Declaration
Swift
@objc public var deviceName: String? { get }
-
Gets the persistent identifier for the model of the audio device.
Declaration
Swift
@objc public var modelName: String? { get }
-
Verifies that the audio transport type is the aggregate type.
Declaration
Swift
@objc public var isAggregateType: Bool { get }
-
Verifies that the device is built into the hardware system.
Declaration
Swift
@objc public var isBuiltIn: Bool { get }
-
Verifies that the stream output is valid.
Declaration
Swift
@objc public var hasOutput: Bool { get }
-
Verifies that the device can capture audio.
Remark
The property can be used to identify whether the device is a microphone.Declaration
Swift
@objc public var isCapturable: Bool { get }
-
Verifies that the device can play audio.
Remark
The property can be used to identify whether the device is a speaker.Declaration
Swift
@objc public var isPlayable: Bool { get }