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

Allocating an AudioBufferList


  • Subject: Allocating an AudioBufferList
  • From: Simon BrĂ©e <email@hidden>
  • Date: Thu, 24 Nov 2005 21:39:24 +0100

Hello everyone,

What is hte good way to allocate an AudioBufferList ?

I've found on the web this method :

size = sizeof(inputDesc);
err = AudioUnitSetProperty(inputUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 1, &inputDesc, size);


inputBuffer = (AudioBufferList *)malloc(offsetof(AudioBufferList, mBuffers[inputDesc.mChannelsPerFrame]));

But I've got the error :

error: 'inputDesc' cannot appear in a constant-expression

What i've done wrong ?

Thanks for any help.

Simon
_______________________________________________
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: Allocating an AudioBufferList
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Realtime synthesis and low latency with Java
  • Next by Date: ComplexPlayThru sample & buffers
  • Previous by thread: RE: Debugging an AudioUnit in Xcode 2.0
  • Next by thread: Re: Allocating an AudioBufferList
  • Index(es):
    • Date
    • Thread