• 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
Confused about AUBufferList.PrepareBuffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Confused about AUBufferList.PrepareBuffer


  • Subject: Confused about AUBufferList.PrepareBuffer
  • From: Stewart Moroney <email@hidden>
  • Date: Wed, 7 Jul 2004 16:52:13 +0100

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.


  • Follow-Ups:
    • Re: Confused about AUBufferList.PrepareBuffer
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Two AUHALs, one ring buffer, and one AU filter. But no sound.
  • Next by Date: Re: Two AUHALs, one ring buffer, and one AU filter. But no sound.
  • Previous by thread: Re: How to alter playback rate?
  • Next by thread: Re: Confused about AUBufferList.PrepareBuffer
  • Index(es):
    • Date
    • Thread