• 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
Re: Core Audio playback precision on iOS devices (and simulator)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Audio playback precision on iOS devices (and simulator)


  • Subject: Re: Core Audio playback precision on iOS devices (and simulator)
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 16 Jul 2010 08:37:23 -0700

On Fri, Jul 16, 2010 at 7:53 AM, Antonio Nunes <email@hidden> wrote:
> To the best of my knowledge, the technique I use here is sample precise, and should achieve near absolute precision (well, sub-microsecond precision anyway). However, when I play this back, and record the sound in a sound editor, I do not see the precision I was expecting. Playback is very good, but there is a small, accumulating lag on each subsequent tick. I first thought I had my math wrong somewhere, or had setup the audiounit incorrectly, but upon double checking all the parameters look correct. In addition, since I was getting these results in the simulator, I decided to measure performance on the actual iPad too. Not to my surprise, there was a small accumulating lag, but much to my surprise, the lag was significantly smaller than in the simulator.

"Precision" and "usleep()" don't mix. It looks like your -driver
method is trying to play catch-up with your realtime audio thread? If
you wind up sleeping for long enough in the call to usleep() to
exhaust the stack of samples, you're going to start lagging.

--Kyle Sluder
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Core Audio playback precision on iOS devices (and simulator)
      • From: Antonio Nunes <email@hidden>
References: 
 >Core Audio playback precision on iOS devices (and simulator) (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Re: Proper way for stopping a graph from it's renderInput callback
  • Next by Date: skips in file using ExtAudioFileWrite in aac
  • Previous by thread: Core Audio playback precision on iOS devices (and simulator)
  • Next by thread: Re: Core Audio playback precision on iOS devices (and simulator)
  • Index(es):
    • Date
    • Thread