AKOutput

@objc
public protocol AKOutput : AnyObject

Simplify making connections from a node.

  • The output of this node can be connected to the inputNode of an AKInput.

    Declaration

    Swift

    var outputNode: AVAudioNode { get }
  • connectionPoints Extension method

    Output connection points of outputNode.

    Declaration

    Swift

    public var connectionPoints: [AVAudioConnectionPoint] { get set }
  • disconnectOutput() Extension method

    Disconnects all outputNode’s output connections.

    Declaration

    Swift

    public func disconnectOutput()
  • disconnectOutput(from:) Extension method

    Breaks connection from outputNode to an input’s node if exists.

    Declaration

    Swift

    public func disconnectOutput(from: AKInput)

    Parameters

    from

    The node that output will disconnect from.

  • connect(to:) Extension method

    Add a connection to an input using the input’s nextInput for the bus.

    Declaration

    Swift

    @discardableResult
    public func connect(to node: AKInput) -> AKInput
  • connect(to:) Extension method

    Add a connection to input.node on input.bus.

    Declaration

    Swift

    @discardableResult
    public func connect(to input: AKInputConnection) -> AKInput

    Parameters

    input

    Contains node and input bus used to make a connection.

  • connect(to:bus:) Extension method

    Add a connection to node on a specific bus.

    Declaration

    Swift

    @discardableResult
    public func connect(to node: AKInput, bus: Int) -> AKInput
  • connect(to:) Extension method

    Add an output connection to each input in inputs.

    Declaration

    Swift

    @discardableResult
    public func connect(to nodes: [AKInput]) -> [AKInput]

    Parameters

    nodes

    Inputs that will be connected to.

  • connect(toInputs:) Extension method

    Add an output connection to each connectionPoint in toInputs.

    Declaration

    Swift

    @discardableResult
    public func connect(toInputs: [AKInputConnection]) -> [AKInput]

    Parameters

    toInputs

    Inputs that will be connected to.

  • connect(to:) Extension method

    Add an output connectionPoint.

    Declaration

    Swift

    public func connect(to connectionPoint: AVAudioConnectionPoint)

    Parameters

    connectionPoint

    Input that will be connected to.

  • setOutput(to:) Extension method

    Sets output connection, removes existing output connections.

    Declaration

    Swift

    @discardableResult
    public func setOutput(to node: AKInput) -> AKInput

    Parameters

    node

    Input that output will be connected to.

  • setOutput(to:bus:format:) Extension method

    Sets output connection, removes previously existing output connections.

    Declaration

    Swift

    @discardableResult
    public func setOutput(to node: AKInput, bus: Int, format: AVAudioFormat?) -> AKInput

    Parameters

    node

    Input that output will be connected to.

    bus

    The bus on the input that the output will connect to.

    format

    The format of the connection.

  • setOutput(to:format:) Extension method

    Sets output connections to an array of inputs, removes previously existing output connections.

    Declaration

    Swift

    @discardableResult
    public func setOutput(to nodes: [AKInput], format: AVAudioFormat?) -> [AKInput]

    Parameters

    nodes

    Inputs that output will be connected to.

    format

    The format of the connections.

  • setOutput(toInputs:) Extension method

    Sets output connections to an array of inputConnectios, removes previously existing output connections.

    Declaration

    Swift

    @discardableResult
    public func setOutput(toInputs: [AKInputConnection]) -> [AKInput]

    Parameters

    toInputs

    Inputs that output will be connected to.

  • setOutput(toInputs:format:) Extension method

    Sets output connections to an array of inputConnectios, removes previously existing output connections.

    Declaration

    Swift

    @discardableResult
    public func setOutput(toInputs: [AKInputConnection], format: AVAudioFormat?) -> [AKInput]

    Parameters

    toInputs

    Inputs that output will be connected to.

    format

    The format of the connections.

  • setOutput(to:) Extension method

    Sets output connections to a single connectionPoint, removes previously existing output connections.

    Declaration

    Swift

    public func setOutput(to connectionPoint: AVAudioConnectionPoint)

    Parameters

    connectionPoint

    Input that output will be connected to.

  • setOutput(to:format:) Extension method

    Sets output connections to a single connectionPoint, removes previously existing output connections.

    Declaration

    Swift

    public func setOutput(to connectionPoint: AVAudioConnectionPoint, format: AVAudioFormat?)

    Parameters

    connectionPoint

    Input that output will be connected to.

    format

    The format of the connections.

  • setOutput(to:format:) Extension method

    Sets output connections to an array of connectionPoints, removes previously existing output connections.

    Declaration

    Swift

    public func setOutput(to connectionPoints: [AVAudioConnectionPoint], format: AVAudioFormat?)

    Parameters

    connectionPoints

    Inputs that output will be connected to.

    format

    The format of the connections.