Instance Method

enableManualRenderingMode(_:format:maximumFrameCount:)

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

Declaration

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

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 input data in manual rendering mode can be supplied through the source nodes. See AVAudioPlayerNode and AVAudioInputNode.

See Also

Manually Rendering an Audio Engine

func disableManualRenderingMode()

Sets the engine to render to or from an audio device.

func renderOffline(AVAudioFrameCount, to: AVAudioPCMBuffer) -> AVAudioEngineManualRenderingStatus

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software