Re: ExtAudioFileRead -- not reading enough frames
Re: ExtAudioFileRead -- not reading enough frames
- Subject: Re: ExtAudioFileRead -- not reading enough frames
- From: Doug Wyatt <email@hidden>
- Date: Fri, 10 Sep 2010 17:37:02 -0700
ExtendedAudioFile.h:
@param ioNumberFrames
On entry, ioNumberFrames is the number of frames to be read from the file.
On exit, it is the number of frames actually read. A number of factors may
cause a fewer number of frames to be read, including the supplied buffers
not being large enough, and internal optimizations. If 0 frames are
returned, however, this indicates that end-of-file was reached.
Either your buffer list was only large enough for 440309 frames, or an optimization resulted in the read being reduced in size.
Doug
On Sep 10, 2010, at 17:33 , Edwards, Waverly wrote:
>
> Sorry, I need to add some clarification. I only learned this week through another list member's posting that upon completion of
>
> result = ExtAudioFileRead(inExtAudFileRef, &framesToRead, bufList);
>
> framesToRead will have stored the number of frames actually read versus the number of frames requested.
> This is where I am getting a result of 440309 frames read, not 441000 as expected. I am perplexed as to why
> there were only 440309 frames read.
_______________________________________________
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