• 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: A number of simple questions (still a few unanswered)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A number of simple questions (still a few unanswered)


  • Subject: Re: A number of simple questions (still a few unanswered)
  • From: James McCartney <email@hidden>
  • Date: Wed, 06 Feb 2013 13:45:11 -0800


On Dec 5, 2012, at 12:11 PM, Paul Davis <email@hidden> wrote:



On Wed, Dec 5, 2012 at 2:14 PM, Seth Willits <email@hidden> wrote:

Still a few I'm unsure about. :)


- Why is AudioTimeStamp.mSampleTime a float if it's an integer number of samples?

because apple don't want accurate timestamps beyond 12 (or even 6 hours).</sarcasm>

Answering an old question, but this is wrong. 

mSampleTime is a Float64.

Float64s have 52 bits of mantissa. With the implicit one bit, that gives 2^53 representable nonnegative integers.

Let's say you are running at 192000 samples per second.
   3600 seconds per hour
   24 hours per day
   365.25 days per year

pow(2,53) / 192000 / 3600 / 24 / 365.25 = 1486.57 years before loss of sample accuracy.



James McCartney
Apple CoreAudio
email@hidden



 _______________________________________________
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: A number of simple questions (still a few unanswered)
      • From: Paul Davis <email@hidden>
  • Prev by Date: Crashes in HALPropertyListener_Call_Helper when using property listeners in threaded code.
  • Next by Date: iOS: AUReverb2 and room types
  • Previous by thread: Re: Crashes in HALPropertyListener_Call_Helper when using property listeners in threaded code.
  • Next by thread: Re: A number of simple questions (still a few unanswered)
  • Index(es):
    • Date
    • Thread