• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Confused about AUBufferList.PrepareBuffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Confused about AUBufferList.PrepareBuffer (From: Stewart Moroney <email@hidden>)

  • Prev by Date: Re: How to alter playback rate?
  • Next by Date: Question about afrecord.cpp
  • Previous by thread: Confused about AUBufferList.PrepareBuffer
  • Next by thread: Question about afrecord.cpp
  • Index(es):
    • Date
    • Thread