Re: How to use this AudioFile info thing?
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