[asterisk-commits] jdixon: branch jdixon/chan_usbradio-1.4 r166473 - /team/jdixon/chan_usbradio-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 22 18:13:10 CST 2008


Author: jdixon
Date: Mon Dec 22 18:13:09 2008
New Revision: 166473

URL: http://svn.digium.com/view/asterisk?view=rev&rev=166473
Log:
Fix code to get rid of distortions receiving IRLP and echolink signals

Modified:
    team/jdixon/chan_usbradio-1.4/apps/app_rpt.c

Modified: team/jdixon/chan_usbradio-1.4/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/team/jdixon/chan_usbradio-1.4/apps/app_rpt.c?view=diff&rev=166473&r1=166472&r2=166473
==============================================================================
--- team/jdixon/chan_usbradio-1.4/apps/app_rpt.c (original)
+++ team/jdixon/chan_usbradio-1.4/apps/app_rpt.c Mon Dec 22 18:13:09 2008
@@ -21,7 +21,7 @@
 /*! \file
  *
  * \brief Radio Repeater / Remote Base program 
- *  version 0.172 11/26/08 
+ *  version 0.173 12/22/08 
  * 
  * \author Jim Dixon, WB6NIL <jim at lambdatel.com>
  *
@@ -407,7 +407,7 @@
 /*! Stop the tones from playing */
 void ast_playtones_stop(struct ast_channel *chan);
 
-static  char *tdesc = "Radio Repeater / Remote Base  version 0.172  11/26/2008";
+static  char *tdesc = "Radio Repeater / Remote Base  version 0.173  12/22/2008";
 
 static char *app = "Rpt";
 
@@ -13825,14 +13825,11 @@
 					{
 						int x1;
 						short *sp;
-						float s;
 
 						sp = (short *)f->data;
 						for(x1 = 0; x1 < f->datalen / 2; x1++)
 						{
-							s = (sp[x1] >> 1) - 
-							    ((sp[x1] >> 3) + (sp[x1] >> 5));
-							sp[x1] = s;
+							sp[x1] /= 3;
 						}
 					}
 




More information about the asterisk-commits mailing list