I am trying to combine the AudioRecordingDemo and the AudioSynthesiserDemo so that I can record the output of the SynthAudioSource.
I am new to audio programming and I am very confused. I think it boils down to the difference between an AudioIODevice and an AudioSource.
The AudioRecordingDemo records the output of the microphone. The microphone is an AudioIODevice. The currently used/recorded AudioIODevice is chosen by the AudioDeviceManager. But I want to record an AudioSource, the SynthAudioSource. I don’t see how to choose the SynthAudioSource with the AudioDeviceManager. So, how do I modify the code of the AudioRecordingDemo to record the SynthAudioSource instead of the microphone output?
(Please note I am NOT trying to record midi notes. Just synth audio output.)