1

I create new app. For my new app I want to create sound effects for my music which play in real time. someone know what framework need for it?

Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277

1 Answers1

0

You should use the AVFoundation framework. You can use the AVAudioPlayer class like this:

NSString * fPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"audiofile.mp3"];
NSURL * url = [NSURL fileURLWithPath:fPath];
AVAudioPlayer * audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:url
                                                                     error:nil];
audioPlayer.numberOfLoops = -1;
[audioPlayer play];
Alex Nichol
  • 7,512
  • 4
  • 32
  • 30