To create another thread on the Mac I used this code so far:
#include <Carbon/Carbon.h>
OSStatus idleThread1(void* data)
{
T2Audio *Pt = (T2Audio*)(data);
Pt->fxIdle1();
return((OSStatus)(0));
}
....
OSStatus returnErr = MPCreateTask(idleThread1, this, 0, NULL, NULL, NULL, 0, &taskID1);
MPSetTaskWeight(taskID1, 50);
However MPCreateTask is deprecated now and the VST3.7 SDK freaks out if you include Carbon.h.
Apple’s docs just say that it’s deprecated, but do not mention how it can be replaced.
What is the correct way to create an idle thread with the VST3 SDK?
Thanks in advance,
Markus