Skip to main content

Mixing Audio

Using Switchboard SDK you can easily mix together different audio streams.

Using the MixerNode Class

You can easily use the MixerNode to mix together different audio sources. You can put arbitrary number of input streams on a MixerNode and it will merge them into one output stream.

import SwitchboardSDK
...
let mixerNode = SBMixerNode()
let audioGraph = SBAudioGraph()
...
audioGraph.addNode(mixerNode)

audioGraph.connect(vocalsInputNode, to: mixerNode)
audioGraph.connect(musicInputNode, to: mixerNode)

For more information take a look at the Mixer Example