StereoPanControl
public class StereoPanControl : AudioControl
A HAL audio stereo pan control object
Remark
This class correponds to objects with base classkAudioStereoPanControlClassID
-
Undocumented
Declaration
Swift
public override var debugDescription: String { get } -
Returns the control’s value
Remark
This corresponds to the propertykAudioStereoPanControlPropertyValueDeclaration
Swift
public func value() throws -> Float -
Sets the control’s value
Remark
This corresponds to the propertykAudioStereoPanControlPropertyValueDeclaration
Swift
public func setValue(_ value: Float) throws -
Returns the control’s panning channels
Remark
This corresponds to the propertykAudioStereoPanControlPropertyPanningChannelsDeclaration
Swift
public func panningChannels() throws -> (PropertyElement, PropertyElement) -
Sets the control’s panning channels
Remark
This corresponds to the propertykAudioStereoPanControlPropertyPanningChannelsDeclaration
Swift
public func setPanningChannels(_ value: (PropertyElement, PropertyElement)) throws -
Returns
trueifselfhasselectorDeclaration
Swift
public func hasSelector(_ selector: AudioObjectSelector<StereoPanControl>) -> BoolParameters
selectorThe selector of the desired property
-
Returns
trueifselectoris settableThrows
An error ifselfdoes not have the requested propertyDeclaration
Swift
public func isSelectorSettable(_ selector: AudioObjectSelector<StereoPanControl>) 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<StereoPanControl>, 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
StereoPanControl Class Reference