• 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
Creating an AudioBufferList
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating an AudioBufferList


  • Subject: Creating an AudioBufferList
  • From: Richard Dearlove <email@hidden>
  • Date: Fri, 21 Nov 2008 16:31:33 +0000

I'd like to make an AudioBufferList with 2 buffers. I've been using the following code, but I'm sure this isn't the right way to do it, as I can't be allocating the memory for the 2nd buffer.

Can someone give me a better method ?


splitterABL.mNumberBuffers = 2;
splitterABL.mBuffers[0] = bufferLeft;
splitterABL.mBuffers[1] = bufferRight;


for (uint i = 0; i < 2; i++) {
splitterABL.mBuffers[i].mNumberChannels = 1;
splitterABL.mBuffers[i].mDataByteSize = 0; //samplesPerBuffer * sizeof (Float32);
splitterABL.mBuffers[i].mData = NULL;
}


cheers
RD
 _______________________________________________
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

  • Follow-Ups:
    • Re: Creating an AudioBufferList
      • From: Peter Rebholz <email@hidden>
  • Prev by Date: Re: Capturing audio from speakers
  • Next by Date: Re: Creating an AudioBufferList
  • Previous by thread: Re: QTTime Display
  • Next by thread: Re: Creating an AudioBufferList
  • Index(es):
    • Date
    • Thread