+ Reply
Results 1 to 2 of 2
  1. #1
    What's Jailbreak?
    Join Date
    Mar 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy AVAudioPLayer Pause method

    m callin the pause meethod of the AVAudio method, but its not pausing the mp3 file on the background.
    Here showing you my code......
    Its really frustating me ...

    Invokjing the file..

    NSString *newAudioFile = [[NSBundle mainBundle] pathForResource:@"sdfsdfsdf" ofType:@"mp3"];
    audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:newAudioFile] error:NULL];
    [audioPlayer setDelegate:self];
    [audioPlayer prepareToPlay];
    [audioPlayer Play];



    For pausing , m writing below lines in a function, but pause is not workin for the MP3 file ...

    NSLog(@"yes");
    [audioPlayer pause];

  2. #2
    Livin the iPhone Life Simtech's Avatar
    Join Date
    Aug 2007
    Location
    LA
    Posts
    2,387
    Thanks
    105
    Thanked 304 Times in 276 Posts

    exactly....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts