mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-23 19:54:17 +00:00
fix resampled file in ringback issue from mailing list
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9246 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
320a541822
commit
468a3c6fe9
3 files changed
+9
No files matched your search
@@ -72,6 +72,7 @@ SWITCH_DECLARE(switch_status_t) switch_resample_create(switch_audio_resampler_t
|
||||
lto_rate = (double) resampler->to_rate;
|
||||
lfrom_rate = (double) resampler->from_rate;
|
||||
resampler->factor = (lto_rate / lfrom_rate);
|
||||
resampler->rfactor = (lfrom_rate / lto_rate);
|
||||
|
||||
resampler->resampler = resample_open(QUALITY, resampler->factor, resampler->factor);
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Activate Resampler %d->%d %f\n", resampler->from_rate, resampler->to_rate,
|
||||
|
||||
Reference in new issue
Block a user