[IMPORTANT] Calling sys_close_audio() freezes the app on macOS
In macOS (Catalina 10.15.5), toggling the DSP on and off freezes the Purr Data app. (the latest master branch)
I believe this issue happens from one of the latest releases. (Probably during the GSoC period)
I tried to fix this and it turned out that calling sys_close_audio()
causes the freezing.
I believe the function itself (and Port Audio's pa_close_audio()
) is not what's causing it since it has not been updated for a long time.
I could not really fix this issue but found a temporary solution to at least make it work on macOS which is the following:
void sys_close_audio(void)
{
#ifdef __APPLE__ /* temporary solution to fix freeze on macOS */
return;
#endif
...
}
This will at least allow macOS users to be able to use Purr Data. I tested this and it worked fine.
I think this issue needs to be fixed ASAP because macOS users won't be able to use the app until it is fixed.
I also have one question: Is "use callback" in Audio Preferences set to true by default? I tried unchecking it but it causes the app to either freeze or crash.