Example of workaround currently in place (from pipewire):
int ret = MYSOFA_OK; // <- if this is not previously set to MYSOFA_OK...
pthread_mutex_lock(&libmysofa_mutex);
impl->sofa = mysofa_open_cached(filename, SampleRate, &impl->n_samples, &ret);
pthread_mutex_unlock(&libmysofa_mutex);
if (ret != MYSOFA_OK) { // <- this will fail
pw_log_error("Unable to load HRTF from %s: %d %m", filename, ret);
errno = ENOENT;
return NULL;
}
Fixes #196
Example of workaround currently in place (from pipewire):