config.resampling.allowDynamicSampleRate = MA_FALSE; /* Disable dynamic sample rates by default because dynamic rate adjustments should be quite rare and it allows an optimization for cases when the in and out sample rates are the same. */
config.allowDynamicSampleRate = MA_FALSE; /* Disable dynamic sample rates by default because dynamic rate adjustments should be quite rare and it allows an optimization for cases when the in and out sample rates are the same. */
converterConfig.resampling.allowDynamicSampleRate = MA_FALSE; /* Never allow dynamic sample rate conversion. Setting this to true will disable passthrough optimizations. */
converterConfig.allowDynamicSampleRate = MA_FALSE; /* Never allow dynamic sample rate conversion. Setting this to true will disable passthrough optimizations. */
resamplerConfig.linear.lpfOrder=0;/* <-- Need to disable low-pass filtering for pitch shifting for now because there's cases where the biquads are becoming unstable. Need to figure out a better fix for this. */
error2:ma_resampler_uninit(&pEngineNode->resampler,&pConfig->pEngine->allocationCallbacks);/* TODO: Remove this when we have support for preallocated heaps with resamplers. */
error1:ma_node_uninit(&pEngineNode->baseNode,NULL);/* <-- No need for allocation callbacks here because we use a preallocated heap. */