AKOfflineRenderNode

@available(iOS, obsoleted: 11)
@available(tvOS, obsoleted: 11)
@available(OSX, obsoleted: 10.13)
open class AKOfflineRenderNode : AKNode, AKComponent, AKInput

Node to render audio quickly into a buffer of memory or into a file

  • Declaration

    Swift

    public typealias AKAudioUnitType = AKOfflineRenderAudioUnit
  • Declaration

    Swift

    public static let ComponentDescription: AudioComponentDescription
  • Turn on or off internal rendering

    Declaration

    Swift

    open var internalRenderEnabled: Bool { get set }
  • Render audio to a file given by a URL

    Parameters:

    • url: URL of the file to write the audio to
    • duration: length of time to record, in seconds
    • settings: Dictionary of information about the file to write

    Declaration

    Swift

    @objc
    public func renderToURL(_ url: URL, duration: Double, settings: [String: Any]? = nil) throws
  • Render audio to memory

    Declaration

    Swift

    @objc
    public func renderToBuffer(for duration: Double) throws -> AVAudioPCMBuffer

    Parameters

    duration

    length of audio buffer, seconds

  • Initialize the offline rendering of a specific node

    Declaration

    Swift

    @objc
    public init(_ input: AKNode? = nil)

    Parameters

    input

    AudioKit Node to render audio from