AKAmplitudeTap

public class AKAmplitudeTap : AKToggleable

Tap to do amplitude analysis on any node. start() will add the tap, and stop() will remove it.

  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

    public private(set) var isStarted: Bool
  • bus

    The bus to install the tap onto

    Declaration

    Swift

    public var bus: Int { get set }
  • Declaration

    Swift

    public var input: AKNode? { get set }
  • Declaration

    Swift

    public var amplitude: Float { get }
  • Declaration

    Swift

    public var leftAmplitude: Float { get }
  • Declaration

    Swift

    public var rightAmplitude: Float { get }
  • Declaration

    Swift

    @objc
    public init(_ input: AKNode?)

    Parameters

    input

    Node to analyze

  • Enable the tap on input

    Declaration

    Swift

    public func start()
  • Remove the tap on the input

    Declaration

    Swift

    public func stop()
  • remove the tap and nil out the input reference this is important in regard to retain cycles on your input node

    Declaration

    Swift

    public func dispose()