title: Play multiple audio files using AVAudioPlayer
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>Apple's <a href="http://developer.apple.com/iphone/library/samplecode/avTouch/Introduction/Intro.html" rel="noreferrer">avTouch</a> 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.</p>
  
  <p>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.</p>
  
  <pre><code>// Load the array with the sample file
  NSURL *fileURL = [[NSURL alloc] 
                   initFileURLWithPath: 
                   [[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];
  }
  </code></pre>
  
  <p>can anyone please help me on<br>
  1. how to load the array with all the 10 tracks which are added to resources folder<br>
  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.  </p>
  
  <p>Thank You </p>