tasselx
6/22/2014 - 3:58 PM

test

test

- (void)playAudio {
    NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"m4r"];
    
    NSURL *file = [[NSURL alloc] initFileURLWithPath:path];
    
   // [path release];
    
    self.player =[[AVAudioPlayer alloc] initWithContentsOfURL:file error:nil];
    
    //[file release];
    
    [self.player prepareToPlay];
    [self.player play];