mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-01 03:05:50 +00:00
FS-7891 should be bytes not samples
This commit is contained in:
parent
00f1682617
commit
bd31d60ee9
@ -445,7 +445,7 @@ static switch_bool_t inband_dtmf_callback(switch_media_bug_t *bug, void *user_da
|
|||||||
if (switch_resample_create(&pvt->resampler,
|
if (switch_resample_create(&pvt->resampler,
|
||||||
read_impl.actual_samples_per_second,
|
read_impl.actual_samples_per_second,
|
||||||
8000,
|
8000,
|
||||||
8 * (read_impl.microseconds_per_packet / 1000),
|
8 * (read_impl.microseconds_per_packet / 1000) * 2,
|
||||||
SWITCH_RESAMPLE_QUALITY,
|
SWITCH_RESAMPLE_QUALITY,
|
||||||
1) != SWITCH_STATUS_SUCCESS) {
|
1) != SWITCH_STATUS_SUCCESS) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to allocate resampler\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to allocate resampler\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user