There are many audio generated from my app, the sources could be AVPlayer
, AudioUnit
, etc. I want to record all the audio(not from mic because that would record user voice) into a single file. Is there any way to get the final mixed audio data before sent to the audio playback hardware?
I've tried AudioUnit
, and The Amazing Audio Engine. However it could only record audio played by AudioUnit
.
Also read the MTAudioProcessingTap, but it has to inject some code into AVPlayer
, and seems complicated to mix all the audio.