The player
(first argument) from
- (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag
is the AVAudioPlayer
, that you are looking for.
So you can check it:
if ([player isEqual:self.audioPlayer1])
{
//Do something
}