Contents

renderOffline(_:to:)

Makes a render call to the engine operating in the offline manual rendering mode.

Declaration

func renderOffline(_ numberOfFrames: AVAudioFrameCount, to buffer: AVAudioPCMBuffer) throws -> AVAudioEngineManualRenderingStatus

Parameters

  • numberOfFrames:

    The number of PCM sample frames to render.

  • buffer:

    The PCM buffer the engine must render the audio for.

Return Value

One of the status codes from AVAudioEngineManualRenderingStatus. Irrespective of the returned status code, on exit, the output buffer’s frameLength indicates the number of PCM samples the engine renders.

See Also

Manually Rendering an Audio Engine