AudioControl
public class AudioControl : AudioObject
A HAL audio control object
This class has a single scope (kAudioObjectPropertyScopeGlobal) and a single element (kAudioObjectPropertyElementMaster)
Remark
This class correponds to objects with base classkAudioControlClassID
-
Undocumented
Declaration
Swift
public override var debugDescription: String { get } -
Returns the control’s scope
Remark
This corresponds to the propertykAudioControlPropertyScopeDeclaration
Swift
public func scope() throws -> PropertyScope -
Returns the control’s element
Remark
This corresponds to the propertykAudioControlPropertyElementDeclaration
Swift
public func element() throws -> PropertyElement -
Returns
trueifselfhasselectorDeclaration
Swift
public func hasSelector(_ selector: AudioObjectSelector<AudioControl>) -> BoolParameters
selectorThe selector of the desired property
-
Returns
trueifselectoris settableThrows
An error ifselfdoes not have the requested propertyDeclaration
Swift
public func isSelectorSettable(_ selector: AudioObjectSelector<AudioControl>) 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<AudioControl>, 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
AudioControl Class Reference