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 propertykAudioHardwarePropertyTransportManagerList
onkAudioObjectSystemObject
Declaration
Swift
public class func transportManagers() throws -> [AudioTransportManager]
-
Returns an initialized
AudioTransportManager
withbundleID
ornil
if unknownRemark
This corresponds to the propertykAudioHardwarePropertyTranslateBundleIDToTransportManager
onkAudioObjectSystemObject
Declaration
Swift
public class func makeTransportManager(forBundleID bundleID: String) throws -> AudioTransportManager?
Parameters
bundleID
The 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 propertykAudioTransportManagerPropertyEndPointList
Declaration
Swift
public func endpointList() throws -> [AudioEndpoint]
-
Returns the audio endpoint provided by the transport manager with the specified UID or
nil
if unknownRemark
This corresponds to the propertykAudioTransportManagerPropertyTranslateUIDToEndPoint
Declaration
Swift
public func endpoint(forUID uid: String) throws -> AudioEndpoint?
Parameters
uid
The UID of the desired endpoint
-
Returns the transport type
Remark
This corresponds to the propertykAudioTransportManagerPropertyTransportType
Declaration
Swift
public func transportType() throws -> AudioDevice.TransportType
-
Returns
true
ifself
hasselector
Declaration
Swift
public func hasSelector(_ selector: AudioObjectSelector<AudioTransportManager>) -> Bool
Parameters
selector
The selector of the desired property
-
Returns
true
ifselector
is settableThrows
An error ifself
does not have the requested propertyDeclaration
Swift
public func isSelectorSettable(_ selector: AudioObjectSelector<AudioTransportManager>) throws -> Bool
Parameters
selector
The selector of the desired property
-
Registers
block
to be performed whenselector
changesThrows
An error if the property listener could not be registeredDeclaration
Swift
public func whenSelectorChanges(_ selector: AudioObjectSelector<AudioTransportManager>, perform block: PropertyChangeNotificationBlock?) throws
Parameters
selector
The selector of the desired property
block
A closure to invoke when the property changes or
nil
to remove the previous value