This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
provide an array of audio files urls and get them merged | |
Its important to note that the process is asynchronous and that one would need to show user some sort of a progress indicator | |
so that the process does not get interupted | |
- parameter audioFileUrls: an array of audio file urls | |
- returns String representing the newly merged file or nil for a failure | |
*/ | |
func mergeAudioFiles(audioFileUrls: [URL]) -> String? { | |
let composition = AVMutableComposition() | |