StereoPanControl

public class StereoPanControl : AudioControl

A HAL audio stereo pan control object

Remark

This class correponds to objects with base class kAudioStereoPanControlClassID
  • Undocumented

    Declaration

    Swift

    public override var debugDescription: String { get }
  • Returns the control’s value

    Remark

    This corresponds to the property kAudioStereoPanControlPropertyValue

    Declaration

    Swift

    public func value() throws -> Float
  • Sets the control’s value

    Remark

    This corresponds to the property kAudioStereoPanControlPropertyValue

    Declaration

    Swift

    public func setValue(_ value: Float) throws
  • Returns the control’s panning channels

    Remark

    This corresponds to the property kAudioStereoPanControlPropertyPanningChannels

    Declaration

    Swift

    public func panningChannels() throws -> (PropertyElement, PropertyElement)
  • Sets the control’s panning channels

    Remark

    This corresponds to the property kAudioStereoPanControlPropertyPanningChannels

    Declaration

    Swift

    public func setPanningChannels(_ value: (PropertyElement, PropertyElement)) throws
  • Returns true if self has selector

    Declaration

    Swift

    public func hasSelector(_ selector: AudioObjectSelector<StereoPanControl>) -> 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<StereoPanControl>) 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<StereoPanControl>, 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