Skip to main content

Splitting Audio

You can easily split your audio into multiple streams with the SplitterNode. For example, if you want to record and listen to a music simultaneously you have to split it first and route it to the corresponding nodes.

import SwitchboardSDK
let splitterNode = SBPlitterNode()
let audioGraph = SBAudioGraph()

audioGraph.connect(splitterNode, to: streamerNode)
audioGraph.connect(splitterNode, to: outputNode)