/* UpsamplerFree *******************************************************/ Error_t UpsamplerFree(Upsampler* upsampler) { if (upsampler) { if (upsampler->polyphase) { for (unsigned i = 0; i < upsampler->factor; ++i) { FIRFilterFree(upsampler->polyphase[i]); } free(upsampler->polyphase); } free(upsampler); } return NOERR; }
/* ***************************************************************************** DecimatorFree */ Error_t DecimatorFree(Decimator* decimator) { if (decimator) { if (decimator->polyphase) { for (unsigned i = 0; i < decimator->factor; ++i) { FIRFilterFree(decimator->polyphase[i]); } free(decimator->polyphase); } free(decimator); } return NOERR; }