SliderControl
public class SliderControl : AudioControl
A HAL audio slider control object
Remark
This class correponds to objects with base classkAudioSliderControlClassID
-
Undocumented
Declaration
Swift
public override var debugDescription: String { get } -
Returns the control’s value
Remark
This corresponds to the propertykAudioSliderControlPropertyValueDeclaration
Swift
public func value() throws -> UInt32 -
Sets the control’s value
Remark
This corresponds to the propertykAudioSliderControlPropertyValueDeclaration
Swift
public func setValue(_ value: UInt32) throws -
Returns the available control values
Remark
This corresponds to the propertykAudioSliderControlPropertyRangeDeclaration
Swift
public func range() throws -> [UInt32] -
Returns
trueifselfhasselectorDeclaration
Swift
public func hasSelector(_ selector: AudioObjectSelector<SliderControl>) -> BoolParameters
selectorThe selector of the desired property
-
Returns
trueifselectoris settableThrows
An error ifselfdoes not have the requested propertyDeclaration
Swift
public func isSelectorSettable(_ selector: AudioObjectSelector<SliderControl>) 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<SliderControl>, 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
SliderControl Class Reference