Contents

init(from:to:)

Creates an audio converter object from the specified input and output formats.

Declaration

init?(from fromFormat: AVAudioFormat, to toFormat: AVAudioFormat)

Parameters

  • fromFormat:

    The input audio format.

  • toFormat:

    The audio format to convert to.

Return Value

An AVAudioConverter instance, or nil if the format conversion isn’t possible.