[svn-commits] dvossel: branch dvossel/hd_confbridge r309993 - /team/dvossel/hd_confbridge/b...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Mar 8 09:42:50 CST 2011
Author: dvossel
Date: Tue Mar 8 09:42:45 2011
New Revision: 309993
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=309993
Log:
Do not memset the mixing statistics struct unless statistics are being gathered
Modified:
team/dvossel/hd_confbridge/bridges/bridge_softmix.c
Modified: team/dvossel/hd_confbridge/bridges/bridge_softmix.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/hd_confbridge/bridges/bridge_softmix.c?view=diff&rev=309993&r1=309992&r2=309993
==============================================================================
--- team/dvossel/hd_confbridge/bridges/bridge_softmix.c (original)
+++ team/dvossel/hd_confbridge/bridges/bridge_softmix.c Tue Mar 8 09:42:45 2011
@@ -61,7 +61,7 @@
/*! \brief Number of mixing iterations to perform between
* gathering statistics. */
-#define SOFTMIX_STAT_INTERVAL 25
+#define SOFTMIX_STAT_INTERVAL 50
/*! \brief Define used to turn on 16 kHz audio support */
/* #define SOFTMIX_16_SUPPORT */
@@ -361,7 +361,9 @@
unsigned int softmix_datalen = SOFTMIX_DATALEN(bridge_data->internal_rate);
/* these variables help determine if a rate change is required */
- memset(&stats, 0, sizeof(stats));
+ if (!stat_iteration_counter) {
+ memset(&stats, 0, sizeof(stats));
+ }
/* If the bridge has an internal sample rate set, we must lock in on that rate */
stats.locked_rate = bridge->internal_sample_rate;
More information about the svn-commits
mailing list