AUEffectBase.cpp bug
AUEffectBase.cpp bug
- Subject: AUEffectBase.cpp bug
- From: Makira <email@hidden>
- Date: Sat, 06 Nov 2004 22:13:55 -0500
While using auval with ligmalloc to squash memory bugs (as explained in the
readme), I found this little error in the CA SDK / AUEffectBase.cpp:297 :
for(unsigned int i = 0; i < inputBufferList.mNumberBuffers; i++ )
{
inputBufferList.mBuffers[i].mData = (Float32
*)inputBufferList.mBuffers[i].mData +
inputBufferList.mBuffers[i].mNumberChannels * sizeof(Float32) *
inSliceFramesToProcess;
outputBufferList.mBuffers[i].mData = (Float32
*)outputBufferList.mBuffers[i].mData +
outputBufferList.mBuffers[i].mNumberChannels * sizeof(Float32) *
inSliceFramesToProcess;
}
sizeof(Float32) should not be there! (pointer arithmetic..), so the correct
code is:
for(unsigned int i = 0; i < inputBufferList.mNumberBuffers; i++ )
{
inputBufferList.mBuffers[i].mData = (Float32
*)inputBufferList.mBuffers[i].mData +
inputBufferList.mBuffers[i].mNumberChannels * inSliceFramesToProcess;
outputBufferList.mBuffers[i].mData = (Float32
*)outputBufferList.mBuffers[i].mData +
outputBufferList.mBuffers[i].mNumberChannels * inSliceFramesToProcess;
}
Am I using an outdated SDK ? I'm sure I'm not the first one to find this
error..
_______________________________________________
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