title: AVAudioPlayerdelegate
body: <p>I receive this error for this code-</p>
  
  <p>warning: class 'BeatMaker' does not implement the 'AVAudioPlayerDelegate' protocol</p>
  
  <pre><code>-(IBAction)playBeat3 {
      NSString *path = [[NSBundle mainBundle] pathForResource:@"beat3" ofType:@"mp3"];
      AVAudioPlayer* theAudio=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL]; 
      theAudio.delegate = self;
      [theAudio play];                         
  }
  </code></pre>
  
  <p>Can anyone help me with this?</p>