AudioPlugIn
public class AudioPlugIn : AudioObject
A HAL audio plug-in object
This class has a single scope (kAudioObjectPropertyScopeGlobal) and a single element (kAudioObjectPropertyElementMaster)
Remark
This class correponds to objects of typekAudioPlugInClassID
-
Returns the available audio plug-ins
Remark
This corresponds to the propertykAudioHardwarePropertyPlugInListonkAudioObjectSystemObjectDeclaration
Swift
public class func plugIns() throws -> [AudioPlugIn] -
Returns an initialized
AudioPlugInwithbundleIDornilif unknownRemark
This corresponds to the propertykAudioHardwarePropertyTranslateBundleIDToPlugInonkAudioObjectSystemObjectDeclaration
Swift
public class func makePlugIn(forBundleID bundleID: String) throws -> AudioPlugIn?Parameters
bundleIDThe bundle ID of the desired plug-in
-
Undocumented
Declaration
Swift
public override var debugDescription: String { get } -
Returns the plug-in’s bundle ID
Remark
This corresponds to the propertykAudioPlugInPropertyBundleIDDeclaration
Swift
public func bundleID() throws -> String -
Returns the audio devices provided by the plug-in
Remark
This corresponds to the propertykAudioPlugInPropertyDeviceListDeclaration
Swift
public func deviceList() throws -> [AudioDevice] -
Returns the audio device provided by the plug-in with the specified UID or
nilif unknownRemark
This corresponds to the propertykAudioPlugInPropertyTranslateUIDToDeviceDeclaration
Swift
public func device(forUID uid: String) throws -> AudioDevice?Parameters
uidThe UID of the desired device
-
Returns the audio boxes provided by the plug-in
Remark
This corresponds to the propertykAudioPlugInPropertyBoxListDeclaration
Swift
public func boxList() throws -> [AudioBox] -
Returns the audio box provided by the plug-in with the specified UID or
nilif unknownRemark
This corresponds to the propertykAudioPlugInPropertyTranslateUIDToBoxDeclaration
Swift
public func box(forUID uid: String) throws -> AudioBox?Parameters
uidThe UID of the desired box
-
Returns the clock devices provided by the plug-in
Remark
This corresponds to the propertykAudioPlugInPropertyClockDeviceListDeclaration
Swift
public func clockDeviceList() throws -> [AudioClockDevice] -
Returns the audio clock device provided by the plug-in with the specified UID or
nilif unknownRemark
This corresponds to the propertykAudioPlugInPropertyTranslateUIDToClockDeviceDeclaration
Swift
public func clockDevice(forUID uid: String) throws -> AudioClockDevice?Parameters
uidThe UID of the desired clock device
-
Returns
trueifselfhasselectorDeclaration
Swift
public func hasSelector(_ selector: AudioObjectSelector<AudioPlugIn>) -> BoolParameters
selectorThe selector of the desired property
-
Returns
trueifselectoris settableThrows
An error ifselfdoes not have the requested propertyDeclaration
Swift
public func isSelectorSettable(_ selector: AudioObjectSelector<AudioPlugIn>) 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<AudioPlugIn>, 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
AudioPlugIn Class Reference