Contents

setManualRenderingInputPCMFormat(_:inputBlock:)

Supplies the data through the input node to the engine while operating in the manual rendering mode.

Declaration

func setManualRenderingInputPCMFormat(_ format: AVAudioFormat, inputBlock block: @escaping  AVAudioIONodeInputBlock) -> Bool

Parameters

  • format:

    The format of the PCM audio data the block supplies to the engine.

  • block:

    The block the engine calls on the input node to get the audio to send to the output when operating in the manual rendering mode. For more information, see Avaudioionodeinputblock.

Discussion

The block must be non-nil when using an input node while the engine is operating in manual rendering mode. If you switch the engine to render to and from an audio device, it invalidates any previous block.

See Also

Manually Giving Data to an Audio Engine