sample platter

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6706 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-12-12 21:30:55 +00:00
parent 2ff5e3ec40
commit 44636d333f
11 changed files with 239 additions and 70 deletions

View File

@@ -111,11 +111,17 @@ SWITCH_DECLARE(uint32_t) switch_resample_process(switch_audio_resampler_t *resam
#endif
}
SWITCH_DECLARE(void) switch_resample_destroy(switch_audio_resampler_t *resampler)
SWITCH_DECLARE(void) switch_resample_destroy(switch_audio_resampler_t **resampler)
{
if (resampler && *resampler) {
#ifndef DISABLE_RESAMPLE
resample_close(resampler->resampler);
if ((*resampler)->resampler) {
resample_close((*resampler)->resampler);
}
#endif
*resampler = NULL;
}
}