[asterisk-commits] mnicholson: branch mnicholson/fax-gateway-v21 r327747 - /team/mnicholson/fax-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 12 09:35:56 CDT 2011


Author: mnicholson
Date: Tue Jul 12 09:35:53 2011
New Revision: 327747

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=327747
Log:
remove unused variables in ast_v21_detect_init

Modified:
    team/mnicholson/fax-gateway-v21/main/dsp.c

Modified: team/mnicholson/fax-gateway-v21/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/team/mnicholson/fax-gateway-v21/main/dsp.c?view=diff&rev=327747&r1=327746&r2=327747
==============================================================================
--- team/mnicholson/fax-gateway-v21/main/dsp.c (original)
+++ team/mnicholson/fax-gateway-v21/main/dsp.c Tue Jul 12 09:35:53 2011
@@ -480,14 +480,8 @@
 
 static void ast_v21_detect_init(v21_detect_state_t *s, unsigned int sample_rate)
 {
-	int duration_samples;
 	float x;
 	int periods_in_block;
-
-	/* Desired tone duration in samples (v21 tone preamble is 1 second long) */
-	duration_samples = 1000 * sample_rate / 1000;
-	/* We want to allow 10% deviation of tone duration */
-	duration_samples = duration_samples * 9 / 10;
 
 	/* If we want to remove tone, it is important to have block size not
 	   to exceed frame size. Otherwise by the moment tone is detected it is too late




More information about the asterisk-commits mailing list