Hi,

Thanks Iohannes for that, I was actually stupidly trying to pass (argc, argv) to the dsp function, hence the crash.
So, now it works as it should, at dsp start.
But there is still a problem though, as I switch the dsp on and off, and on ... it clicks when it restarts ...
It actually does continue the playback where it was (as I wanted to be), but with an annoying click.
In the tabread example, it needs a sig to trigger the samples, but I don't want to.
I want the arrays to be loaded once for all at instantiantion, and then doing my processing.
I thus guess that it may be due to the 64 samples buffer length, that is sweeped out when turning off.
Am I right ? Is there a solution to cope with that ?
Does the dsp on call the dsp function and dsp off the dsp free function ?
What if I don't have a dsp free function ?

I could send some code, but I think I can't handle the problem once I more precisely understand how Pd API works.

Best

Sylvain

2008/3/31, IOhannes m zmoelnig <zmoelnig@iem.at>:
Sylvain Le Beux wrote:
> Hi everyone,
>
> I am actually writing an external which manipulates some audio buffers, and
> for this purpose I use garrays (i.e. garrays names are actual arguments of
> my external).
> The problem is that in order, for my external, to retrieve the data
> contained in the buffer, I need to reinstantiate the object and then it
> works just fine.
> There is here something that I am missing about the way Pd handles with
> garrays ...



have a look at tabread/tabwrite how it is handled there.

code might be useful for your specific problem.

fgmsdr

IOhannes