Allocating an AudioBufferList
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