Instance Method

setBusCount(_:)

Changes the number of busses in the array.

Declaration

func setBusCount(_ count: Int) throws

Parameters

count

The new number of busses in the array.

outError

Returns an error if the operation failed, or nil if it succeeded.

Return Value

  • true if the operation succeeded.

  • false if the operation failed.

Discussion

See Also

Bus Array Methods and Properties

var count: Int

The number of busses in the array.

var isCountChangeable: Bool

Determines whether the array can have a variable number of busses.

var ownerAudioUnit: AUAudioUnit

The audio unit that owns the bus array.

var busType: AUAudioUnitBusType

Determines whether the bus array is for input or output.

subscript(Int) -> AUAudioUnitBus

Returns the bus at the specified index.

func removeObserver(fromAllBusses: NSObject, forKeyPath: String, context: UnsafeMutableRawPointer?)

Removes a KVO observer for a given property on all busses in the array.