• 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
AUEffectBase.cpp bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: AUEffectBase.cpp bug
      • From: Makira <email@hidden>
    • Re: AUEffectBase.cpp bug
      • From: Makira <email@hidden>
  • Prev by Date: Re: altivec problems
  • Next by Date: Re: AUEffectBase.cpp bug
  • Previous by thread: Re: altivec problems
  • Next by thread: Re: AUEffectBase.cpp bug
  • Index(es):
    • Date
    • Thread