Contents

setFormat(_:)

Sets the bus’s audio format.

Declaration

func setFormat(_ format: AVAudioFormat) throws

Parameters

  • format:

    The desired audio format.

Discussion

  • false if the operation failed.

Discussion

Audio units can generally be expected to support the AVAudioFormat standard format (deinterleaved 32-bit float), at any sample rate.

Channel counts can be more complex. See the channelCapabilities reference for a more complete discussion.

See Also

Bus Methods and Properties