]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7654 regression on eavesdropping on channels with unlike rates
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 22 Jul 2015 05:37:41 +0000 (00:37 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 22 Jul 2015 05:37:41 +0000 (00:37 -0500)
src/switch_ivr_async.c

index e3b5329291e92653509aa1619da615f928a56176..0e0ddc02bbb80a240b6060a3c756c0a1a71b2437 100644 (file)
@@ -2193,12 +2193,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session
                                        write_frame.datalen = (uint32_t) switch_buffer_read(ep->buffer, buf, len);
                                        write_frame.samples = write_frame.datalen / 2;
 
-                                       if (ep->tread_impl.number_of_channels != ep->read_impl.number_of_channels) {
-                                               uint32_t rlen = write_frame.datalen / 2 / ep->tread_impl.number_of_channels;
-                                               switch_mux_channels((int16_t *) write_frame.data, rlen, ep->tread_impl.number_of_channels, ep->read_impl.number_of_channels);
-                                               write_frame.datalen = rlen * 2 * ep->read_impl.number_of_channels;
-                                               write_frame.samples = write_frame.datalen / 2;
-                                       }
+                                       //if (ep->tread_impl.number_of_channels != ep->read_impl.number_of_channels) {
+                                       //      uint32_t rlen = write_frame.datalen / 2 / ep->tread_impl.number_of_channels;
+                                       //      switch_mux_channels((int16_t *) write_frame.data, rlen, ep->tread_impl.number_of_channels, ep->read_impl.number_of_channels);
+                                       //      write_frame.datalen = rlen * 2 * ep->read_impl.number_of_channels;
+                                       //      write_frame.samples = write_frame.datalen / 2;
+                                       //}
                                        
                                        if ((status = switch_core_session_write_frame(session, &write_frame, SWITCH_IO_FLAG_NONE, 0)) != SWITCH_STATUS_SUCCESS) {
                                                break;