Play multiple audio files using AVAudioPlayer - Repost - open to bidding

I am planning on releasing 10 of my song recordings for free but bundled in an iphone app. They are not available on web or itunes or anywhere as of now.

I am new to iphone sdk (latest) as you can imagine, so I have been going through the developer documentation, various forums and stackoverflow to learn.

Apple's avTouch sample application was a great start. But I want my app to play all the 10 tracks one by one. All the songs are added to resources folder and are named as track1, track2...track10.

In the avTouch app code I can see the following 2 parts which is where I think I need to make changes to achieve what I am looking for. But I am lost.

// Load the array with the sample file

NSURL *fileURL = [[NSURL alloc]


[[NSBundle mainBundle] pathForResource:@"sample" ofType:@"m4a"]];

- (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag


if (flag == NO)

NSLog(@"Playback finished unsuccessfully");

[player setCurrentTime:0.];

[self updateViewForPlayerState];


can anyone please help me on

1. how to load the array with all the 10 tracks which are added to resources folder

2. and when I hit play, player should start the first track. when the 1st track ends 2nd track should start and so on for the remaining tracks.

Thank You

Skills: iPhone

See more: learn to code for free, learn how to code for free, i want to make an app and need developer, how to start as web developer, how to learn code for free, how to learn code, web developer resources, how to learn web developer, track2, learn iphone, want play, audio player web, free play, m4a, iphone forums, tracks app iphone, iphone free sample, play multiple songs audio player iphone sample code, audio player app, play multiple tracks iphone

About the Employer:
( 0 reviews ) Ekkattuthangal, India

Project ID: #5487544

1 freelancer is bidding on average ₹11666 for this job


Hello Sir, we're expert about IOS(Iphone, Ipad),Android. we worked on many projects. So we can help you. This is link some projects that we have done: [login to view URL] . we hope we'll have long time cooper More

₹11666 INR in 1 day
(3 Reviews)