AVAudioPlayer not looping
- by Nick
Hey guys,
I have this code:
- (id<SelfReleasingSound>) initWithFilepath: (NSString *) filepath {
self = [super init];
if(self != nil){
NSData * soundFileData = [NSData dataWithContentsOfFile: filepath];
NSError * error;
player = [[AVAudioPlayer alloc] initWithData: soundFileData error: &error];
if(error != nil){
…