AudioTransportManager
public class AudioTransportManager : AudioPlugIn
A HAL audio transport manager object
This class has a single scope (kAudioObjectPropertyScopeGlobal) and a single element (kAudioObjectPropertyElementMaster)
Remark
This class correponds to objects with base classkAudioTransportManagerClassID
-
Returns the available audio transport managers
Remark
This corresponds to the propertykAudioHardwarePropertyTransportManagerListonkAudioObjectSystemObjectDeclaration
Swift
public class func transportManagers() throws -> [AudioTransportManager] -
Returns an initialized
AudioTransportManagerwithbundleIDornilif unknownRemark
This corresponds to the propertykAudioHardwarePropertyTranslateBundleIDToTransportManageronkAudioObjectSystemObjectDeclaration
Swift
public class func makeTransportManager(forBundleID bundleID: String) throws -> AudioTransportManager?Parameters
bundleIDThe bundle ID of the desired transport manager
-
Undocumented
Declaration
Swift
public override var debugDescription: String { get } -
Returns the audio endpoints provided by the transport manager
Remark
This corresponds to the propertykAudioTransportManagerPropertyEndPointListDeclaration
Swift
public func endpointList() throws -> [AudioEndpoint] -
Returns the audio endpoint provided by the transport manager with the specified UID or
nilif unknownRemark
This corresponds to the propertykAudioTransportManagerPropertyTranslateUIDToEndPointDeclaration
Swift
public func endpoint(forUID uid: String) throws -> AudioEndpoint?Parameters
uidThe UID of the desired endpoint
-
Returns the transport type
Remark
This corresponds to the propertykAudioTransportManagerPropertyTransportTypeDeclaration
Swift
public func transportType() throws -> AudioDevice.TransportType -
Returns
trueifselfhasselectorDeclaration
Swift
public func hasSelector(_ selector: AudioObjectSelector<AudioTransportManager>) -> BoolParameters
selectorThe selector of the desired property
-
Returns
trueifselectoris settableThrows
An error ifselfdoes not have the requested propertyDeclaration
Swift
public func isSelectorSettable(_ selector: AudioObjectSelector<AudioTransportManager>) throws -> BoolParameters
selectorThe selector of the desired property
-
Registers
blockto be performed whenselectorchangesThrows
An error if the property listener could not be registeredDeclaration
Swift
public func whenSelectorChanges(_ selector: AudioObjectSelector<AudioTransportManager>, perform block: PropertyChangeNotificationBlock?) throwsParameters
selectorThe selector of the desired property
blockA closure to invoke when the property changes or
nilto remove the previous value
View on GitHub
AudioTransportManager Class Reference