title: Audio file not play in objective C
body: <pre><code>- (void)play {
      NSURL *imgPath = [[NSBundle mainBundle] URLForResource:@"sound" withExtension:@"mp3"];
      NSString *path = [imgPath path];
      NSData *data = [[NSFileManager defaultManager] contentsAtPath:path];
      NSLog(@"%@",data);
      NSError *error;   
      self.avPlayer = [[AVAudioPlayer alloc] initWithData:data error:&amp;error];
      [self.avPlayer play];
      }
  </code></pre>