AKOutputWaveformPlot

open class AKOutputWaveformPlot: EZAudioPlot

Wrapper class for plotting audio from the final mix in a waveform plot

  • Initialize the plot in a frame

    Declaration

    Swift

    override public init(frame: CGRect)

    Parameters

    frame

    CGRect in which to draw the plot

  • Initialize the plot in a frame with a different buffer size

    • Parameters:
      • frame: CGRect in which to draw the plot
      • bufferSize: size of the buffer - raise this number if the device struggles with generating the waveform

    Declaration

    Swift

    public init(frame: CGRect, bufferSize: Int)

    Parameters

    frame

    CGRect in which to draw the plot

    bufferSize

    size of the buffer - raise this number if the device struggles with generating the waveform

  • Required coder-based initialization (for use with Interface Builder)

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)

    Parameters

    coder

    NSCoder

  • Create a View with the plot (usually for playgrounds)

    • Parameters:
      • width: Width of the view
      • height: Height of the view

    Declaration

    Swift

    open static func createView(width: CGFloat = 440, height: CGFloat = 200.0) -> AKView

    Parameters

    width

    Width of the view

    height

    Height of the view