• 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: Seth Willits <email@hidden>
  • Date: Wed, 06 Feb 2013 16:04:43 -0800

On Wed, Feb 6, 2013 at 4:45 PM, James McCartney <email@hidden> wrote:

> 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.


Still curious why it's a Float64 in the first place. :)



--
Seth Willits




 _______________________________________________
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: "RenĂ© J.V. Bertin" <email@hidden>
References: 
 >Re: A number of simple questions (still a few unanswered) (From: James McCartney <email@hidden>)
 >Re: A number of simple questions (still a few unanswered) (From: Paul Davis <email@hidden>)

  • Prev by Date: Re: A number of simple questions (still a few unanswered)
  • Next by Date: Re: A number of simple questions (still a few unanswered)
  • Previous by thread: Re: A number of simple questions (still a few unanswered)
  • Next by thread: Re: A number of simple questions (still a few unanswered)
  • Index(es):
    • Date
    • Thread