• 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: How to use this AudioFile info thing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use this AudioFile info thing?


  • Subject: Re: How to use this AudioFile info thing?
  • From: Richard Dobson <email@hidden>
  • Date: Thu, 05 May 2005 19:42:23 +0100

That isn't what I asked. Your previous post implied that there are file formats of which you can only determine the duration by "parsing the entire file". This is never required for WAVE or AIFF, or for any sane soundfile format, because the length in sample frames can be directly got from the header (at the beginning of the file, we hope!). A file doesn't "fill out" anything; some software algorithm has to do that (is this some as yet undocumented element of the elusive CAF format?). I want to know what file formats (compressed? headerless?) have to be parsed over their entirety to know the duration. So I know to avoid them, basically!

And in any case, the calculation TotalFrames/SampleRate will only be accurate to some number of decimal places. What would cause it to be more approximate than this?


Richard Dobson


Bob Aron wrote:

Richard,

All the files supported by AudioFile should at least fill out the duration InfoString. When AudioFile knows the total frames without parsing the entire file, it will be an accurate (as opposed to approximate) duration time. (TotalFrames/SampleRate)

b


....

_______________________________________________
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: How to use this AudioFile info thing?
      • From: Bob Aron <email@hidden>
    • Re: How to use this AudioFile info thing?
      • From: Brian Willoughby <email@hidden>
    • Re: How to use this AudioFile info thing?
      • From: David Duncan <email@hidden>
References: 
 >How to use this AudioFile info thing? (From: john <email@hidden>)
 >Re: How to use this AudioFile info thing? (From: Bob Aron <email@hidden>)
 >Re: How to use this AudioFile info thing? (From: Richard Dobson <email@hidden>)
 >Re: How to use this AudioFile info thing? (From: Bob Aron <email@hidden>)

  • Prev by Date: Re: How to use this AudioFile info thing?
  • Next by Date: Re: How to use this AudioFile info thing?
  • Previous by thread: Re: How to use this AudioFile info thing?
  • Next by thread: Re: How to use this AudioFile info thing?
  • Index(es):
    • Date
    • Thread