init(format:)
Initializes a bus object with a specific format.
Declaration
init(format: AVAudioFormat) throwsParameters
- format:
The initial audio format.
Return Value
A newly-initialized bus object, or nil 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.
Initialization will fail and return an error if the specified format is unsupported for the bus.