Recording (Microphone)
Audio capture from the microphone input to the recording node
// Configure the graph for rendering
let context = Assembler(rendering: .live).createAudioGraph()
// Configure a stereo recorder node and set the context to live mode
let recorder = Recorder(channels: .stereo)
context.addAutomaticPullNode(node: recorder)
// Configure node connections
try context.connect(source: context.destination, to: recorder)
recorder.record()Last updated