I’ve got a heavy loading function that is occasionally triggered from the processBlock() loop.
I would like the function to be called asynchrously as right now it blocks the audio.
I’m looking at MessageManager’s
void* callFunctionOnMessageThread (MessageCallbackFunction* callback, void* userData);
…but I’m stumped!
How do I set up a normal member function say
void loadFile (int fileNumber);
…to work in this way?
Many thanks in advance!