AVAudioEngine

class AVAudioEngine : NSObject
  • Adding connection between nodes with default format

    Declaration

    Swift

    open func connect(_ node1: AVAudioNode, to node2: AVAudioNode)
  • Render output to an AVAudioFile for a duration. - Parameters - audioFile: An file initialized for writing - seconds: Duration to render - prerender: A closure called before rendering starts, use this to start players, set initial parameters, etc…

    Declaration

    Swift

    @available(iOS 11.0, OSX 10.13, tvOS 11.0, *)
    public func renderToFile(_ audioFile: AVAudioFile, seconds: Double, prerender: (() -> Void)? = nil) throws