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