Hello,
I wanted to share some doubts I have with the hope of them being solved.
In writing tilde externals, I've seen that in and out buffer address (in the case of a 1inlet/1outlet external) are the same. I thought it was a problem of my initialization code, but then I checked on other externals and I have seen that this always happens... I can't understand how two buffers share the same starting memory address. I expected a ping-pong strategy, with 2 pointers and two allocated memory areas, with the pointers changing from location 1 to 2 to 1 and so forth.
I digged into these details because the external I am writing crashes with a segmentation fault when I try to write to the out buffer.
while (n--)
{
for (i = 0; i < x->x_noutlets; i++)
{
*(out[i]++) = 0.;
}
}
This does not happen at first but after some few iterations of the perform routine. I suppose that this is due to a write in a forbidden memory area... Any suggestions?
L[/i]