title: Playing multiple sounds at once?
body: <p>I have 6 sounds on one view.</p>
  
  <p>However I want it so that I can play more than one at once, So you tap sound 1 (sound 1 is playing) then sound 2 plays. while sound 1 is still playing.</p>
  
  <p>But at the moment I press sound 1 (sound 1 plays), press sound 2 (sound 2 plays, but sound 1 stops)</p>
  
  <p>Here is the code for the audio part.</p>
  
  <pre><code>- (IBAction)oneSound:(id)sender; {
      NSString *path = [[NSBundle mainBundle] pathForResource:@"1" ofType:@"wav"];
      if (theAudio) [theAudio release];
      theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
      theAudio.delegate = self;
      [theAudio play];   
      volumeTimer = [NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:@selector(updateVolume) userInfo:nil repeats:YES];
  }
  
  - (IBAction)twoSound:(id)sender; {
      NSString *path = [[NSBundle mainBundle] pathForResource:@"2" ofType:@"wav"];
      if (theAudio) [theAudio release];
      theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
      theAudio.delegate = self;
      [theAudio play];   
      volumeTimer = [NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:@selector(updateVolume) userInfo:nil repeats:YES];
  }
  </code></pre>