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
ios swift avfoundation


source to share


No one has answered this question yet

Check out similar questions:

1665
How can I get the UITextField to move upward when there is a keyboard - when starting editing?
ten
How to simultaneously record and play captured video using AVFoundation with a few seconds delay?
7
Record audio file and save locally to iPhone
4
AVAudioRecorder only records audio after interruption
4
IOS multichannel audio with AVFoundation and Swift
2
Swift: play recorded audio
2
Can't play multiple sounds at the same time in fast iOS
1
Play recorded audio only when AVAudioPlayer has value from AVAudioRecorder
-1
Tracking multiple touches as CGPoints in Swift



All Articles
Loading...
X
Show
Funny
Dev
Pics