Mac: Calling outlet functions from core midi callback

Mar 4, 2011 at 5:09pm

Mac: Calling outlet functions from core midi callback

Hello,

Is it safe, ok, good practice, to call outlet_int from the core midi callback function?

I’m writing an external which rx’s midi from core midi and sends it out an outlet. Can I call outlet_int in the core midi callback function, or should I do it another way, like on a Max timer tick, or a separate thread?

Thanks,

-Baba

#55328
Mar 9, 2011 at 3:43pm

No! This is bad. You should definitely do it in Max’s scheduler thread by using one of the clock_* functions.

Cheers,
Tim

#199146

You must be logged in to reply to this topic.