Code: Select all
If *myAEffect\numOutputs
*ptrOutputBuffers=*myAEffect\numOutputs
EndIf
Can't be correct!
First you need to create buffers according to *myAEffect\numOutputs and then in ProcessReplacing :
you should pass the address of the array containing the pointers of the buffers.
(in C terminology: you pass a pointer to a pointer-> **Buffer) (see SDK)
Pseudo code:
Dim arrIn.i(*myAEffect\numInputs)
Dim arrOut.i(*myAEffect\numOutputs)
arrOut(0)=AllocateMemory(BlockSize*4) etc....
ProcessReplacing(ptrProcess,*myAEffect,@arrIn,@arrOut,BlockSize)
Good luck!
p.s. Please use an English download site.