Re: ExtAudioFileRead
Re: ExtAudioFileRead
- Subject: Re: ExtAudioFileRead
- From: Doug Wyatt <email@hidden>
- Date: Thu, 9 Sep 2010 09:55:28 -0700
On Sep 8, 2010, at 18:13 , Aran Mulholland wrote:
> Thanks ethan, your a legend.
>
> that fixed it, I was unaware that ExtAudioFileRead modifies the buffer
> list to return the number of samples read. Is there any documentation
> for this behaviour that you know of, or did you just discover this by
> accident?
It's hopefully demonstrated in some examples.
The principle (which extends to some other APIs too) is: When an AudioBufferList is used as an in+out parameter, on entry, mDataByteSize expresses a maximum capacity. On exit, mDataByteSize reflects the actual number of bytes written.
Doug
_______________________________________________
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