• 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: Bob Aron <email@hidden>
  • Date: Thu, 5 May 2005 17:18:40 -0700


On May 5, 2005, at 11:54 AM, David Duncan wrote:

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



VBR MP3 would be a format that requires you to parse the entire file to know the time. I don't know how Vorbis does it, but the Ogg container might store such information (I haven't looked). There are probably other formats out there that have this issue as well.



Actually many MP3 files with VBR data also have a XING header in them, which allows an approximate duration to be calculated.

bob

____________________________________________
CoreAudio Team
Apple Computer Inc.
(408) 974-1221
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

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>)
 >Re: How to use this AudioFile info thing? (From: Richard Dobson <email@hidden>)
 >Re: How to use this AudioFile info thing? (From: David Duncan <email@hidden>)

  • Prev by Date: Get hardware buffer size
  • Next by Date: Re: Get hardware buffer size
  • 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