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 class kAudioTransportManagerClassID
  • Returns the available audio transport managers

    Remark

    This corresponds to the propertykAudioHardwarePropertyTransportManagerList on kAudioObjectSystemObject

    Declaration

    Swift

    public class func transportManagers() throws -> [AudioTransportManager]
  • Returns an initialized AudioTransportManager with bundleID or nil if unknown

    Remark

    This corresponds to the property kAudioHardwarePropertyTranslateBundleIDToTransportManager on kAudioObjectSystemObject

    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 property kAudioTransportManagerPropertyEndPointList

    Declaration

    Swift

    public func endpointList() throws -> [AudioEndpoint]
  • Returns the audio endpoint provided by the transport manager with the specified UID or nil if unknown

    Remark

    This corresponds to the property kAudioTransportManagerPropertyTranslateUIDToEndPoint

    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 property kAudioTransportManagerPropertyTransportType

    Declaration

    Swift

    public func transportType() throws -> AudioDevice.TransportType
  • Returns true if self has selector

    Declaration

    Swift

    public func hasSelector(_ selector: AudioObjectSelector<AudioTransportManager>) -> Bool

    Parameters

    selector

    The selector of the desired property

  • Returns true if selector is settable

    Throws

    An error if self does not have the requested property

    Declaration

    Swift

    public func isSelectorSettable(_ selector: AudioObjectSelector<AudioTransportManager>) throws -> Bool

    Parameters

    selector

    The selector of the desired property

  • Registers block to be performed when selector changes

    Throws

    An error if the property listener could not be registered

    Declaration

    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