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?
Asked
Active
Viewed 342 times
1 Answers
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