Contents

enableManualRenderingMode(_:format:maximumFrameCount:)

Sets the engine to operate in manual rendering mode with the render format and maximum frame count you specify.

Declaration

func enableManualRenderingMode(_ mode: AVAudioEngineManualRenderingMode, format pcmFormat: AVAudioFormat, maximumFrameCount: AVAudioFrameCount) throws

Parameters

  • mode:

    The manual rendering mode to use.

  • pcmFormat:

    The format of the output PCM audio data from the engine.

  • maximumFrameCount:

    The maximum number of PCM sample frames the engine produces in a single render call.

Discussion

Use this method to configure the engine to render in response to requests from the client. You must stop the engine before calling this method. The render format must be a PCM format and match the format of the rendering buffer.

The source nodes can supply the input data in manual rendering mode. For more information, see AVAudioPlayerNode and AVAudioInputNode.

See Also

Manually Rendering an Audio Engine