I have to record an audio by mixing multiple audio file. For example, if three audio file are being played, so I have to mix the sound of all those playing audio and record it into a single audio file.
Please help me in this in this, if any working code is there to achieve it.
Thanks in Advance !!
I think I understand what you’re asking.
You want to create a single track using three tracks available to you. Now, you cannot have audio files playing when you try to use them, they’re locked.
You’ll want to use AVMutableComposition, load all the tracks as AVURLAssets and then combine them. Now I’ve only written code to append one file to another file, so my example won’t be complete, but it should point you in the right direction.