Re: Confused about AUBufferList.PrepareBuffer
Re: Confused about AUBufferList.PrepareBuffer
- Subject: Re: Confused about AUBufferList.PrepareBuffer
- From: William Stewart <email@hidden>
- Date: Wed, 7 Jul 2004 12:27:42 -0700
Its correct. your packet count variable is the number of sample frames
in each buffer. the size of each sample is 4 bytes (sizeof(Float32)),
so the ***byte*** size of each buffer is (numFrames * sizeof the sample
(4))
Bill
On 07/07/2004, at 8:52 AM, Stewart Moroney wrote:
>
Hi
>
>
I'm calling
>
>
UInt64 gTotalPacketCount = 500;
>
AUBufferList mAUBuffer;
>
mAUBuffer.Allocate(outputASBD, gTotalPacketCount);
>
AudioBufferList *outData = &mAUBuffer.PrepareBuffer(outputASBD,
>
gTotalPacketCount);
>
>
this returns with
>
>
outData->mNumberBuffers = 2
>
outData->mBuffers[0].mNumberChannel = 1
>
outData->mBuffers[0].mDataByteSize = 2000
>
>
Isn't mDataByteSize 4 times too big. I'd expect it to be 500. Can
>
somebody please explain.
>
>
Stewart
>
_______________________________________________
>
coreaudio-api mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>
Do not post admin requests to the list. They will be ignored.
>
>
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement [GSV]
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.