mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
sample platter
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6706 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user