]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7891 should be bytes not samples
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 24 Jul 2015 16:43:31 +0000 (11:43 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 24 Jul 2015 16:43:34 +0000 (11:43 -0500)
src/mod/applications/mod_spandsp/mod_spandsp_dsp.c

index 9ab9622a523ffa0fd46c1b2f08581ad7ec66c6df..40b804f86adfec5749c37b87b693320378083aaa 100644 (file)
@@ -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,
                                                                                           read_impl.actual_samples_per_second,
                                                                                           8000,
-                                                                                          8 * (read_impl.microseconds_per_packet / 1000),
+                                                                                          8 * (read_impl.microseconds_per_packet / 1000) * 2,
                                                                                           SWITCH_RESAMPLE_QUALITY, 
                                                                                           1) != SWITCH_STATUS_SUCCESS) {
                                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to allocate resampler\n");