How to record multiple tracks using AVFoundation?

I just started learning Swift and wanted to create an app that can record multiple tracks and play them all at once. So far I got this tutorial: http://www.techotopia.com/index.php/Recording_Audio_on_iOS_8_with_AVAudioRecorder_in_Swift .

My question is, how can I best change this to set up 5 tracks for recording and play them all at the same time? My best guess right now is to make 5 URLs to record and make 5 action buttons that will trigger record (), but do I need to make 5 instances of AVAudioRecorder and AVAudioPlayer?

Thank!

+3


source to share





All Articles