pdengine = new pd::PdBase();
pdengine->init (/*NInChannels()*/ 0, 2, GetSampleRate());
patch = pdengine->openPatch("testpatches/sine.pd", ".");
// audio processing on
pdengine->computeAudio(true);
and so on.
patch = pdengine->openPatch("testpatches/sine.pd", ".");
gives
Thread 1: EXC_BAD_ACCESS (code=1, address=0x28) on pdengine->openPatch()
the testpatches folder exists at “." and contains sine.pd.
What’s wrong?