• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AVAudioplayer is skipping -- sounds like a cd skipping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AVAudioplayer is skipping -- sounds like a cd skipping


  • Subject: AVAudioplayer is skipping -- sounds like a cd skipping
  • From: Miles <email@hidden>
  • Date: Mon, 13 Jul 2009 15:54:46 -0700

I'm using this basic code to play a sound and it frequently skips at the
end, sounded like a cd skipping. I'm playing .caf files at 22500 Hz.
Does anyone any experience with this?
Thanks!

int soundNum            = arc4random() % [soundsArray count];
AVAudioPlayer *sound    = [soundsArray objectAtIndex:soundNum];

[currentSound stop];
currentSound = nil;

currentSound = sound;
[currentSound setCurrentTime:0.0];
[currentSound play];
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AVAudioplayer is skipping -- sounds like a cd skipping
      • From: Luke the Hiesterman <email@hidden>
  • Prev by Date: Re: CAKeyframeAnimation problem
  • Next by Date: Re: AVAudioplayer is skipping -- sounds like a cd skipping
  • Previous by thread: [Moderator] Re: ★★★★ Cocoa project for sale
  • Next by thread: Re: AVAudioplayer is skipping -- sounds like a cd skipping
  • Index(es):
    • Date
    • Thread