Re: A few quick questions
Re: A few quick questions
- Subject: Re: A few quick questions
- From: Franck Stauffer <email@hidden>
- Date: Wed, 10 Nov 2004 12:46:46 +0100
Le 10 nov. 04, à 09:37, Makira a écrit :
I have 3 small questions:
- First, could anyone please confirm that I didn't misread or misinterpret
the code in AUEffectBase and that it really is a bug?
As far as I can tell it's not a bug, i think you misinterpreted it.
<x-tad-smaller>inputBufferList.mBuffers[i].mData </x-tad-smaller> is declared as void* so you surely need the sizeof(Float32) to offset it correctly
to what corresponds to a float in the buffer.
For instance you could take the following simple example to illustrate this
float* a;
float b[4] = {0.4f, 0.1f, 0.2f, 0.3f};
a = b;
a++;
would give the result you'd expect but
void* a;
float b[4] = {0.4f, 0.1f, 0.2f, 0.3f};
a = b;
a++;
wouldn't as you'd need to do a = a + sizeof(float);
Franck
_______________________________________________
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