How to Get audio file from the project
<p>i m not getting sound in iphone here is my code</p>

<pre><code>NSString *filepath=[[NSBundle mainBundle]pathForResource:@"horror (2)" ofType:@"mp3" ];
NSLog(@"filepath=%@",filepath);
url=[[NSURL alloc]initFileURLWithPath:filepath ];
NSLog(@"url==%@",url);
audioplayer=[[AVAudioPlayer alloc]initWithContentsOfURL:url error:nil ];
[self.audioplayer prepareToPlay];
self.audioplayer.currentTime=0;
[self.audioplayer play];
audioplayer.numberOfLoops=-1;
</code></pre>
