[asterisk-commits] alecdavis: branch 1.8 r372339 - /branches/1.8/main/dsp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 5 13:34:48 CDT 2012


Author: alecdavis
Date: Wed Sep  5 13:34:42 2012
New Revision: 372339

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=372339
Log:
dsp.c: in ast_mf_detect_init incorrectly sets goertzel samples to 160, should be MF_GSIZE

Related https://reviewboard.asterisk.org/r/2097/


Modified:
    branches/1.8/main/dsp.c

Modified: branches/1.8/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/dsp.c?view=diff&rev=372339&r1=372338&r2=372339
==============================================================================
--- branches/1.8/main/dsp.c (original)
+++ branches/1.8/main/dsp.c Wed Sep  5 13:34:42 2012
@@ -320,7 +320,6 @@
 		s->chunky++;
 		s->v3 = s->v3 >> 1;
 		s->v2 = s->v2 >> 1;
-		v1 = v1 >> 1;
 	}
 }
 
@@ -505,7 +504,7 @@
 	int i;
 	s->hits[0] = s->hits[1] = s->hits[2] = s->hits[3] = s->hits[4] = 0;
 	for (i = 0;  i < 6;  i++) {
-		goertzel_init (&s->tone_out[i], mf_tones[i], 160);
+		goertzel_init (&s->tone_out[i], mf_tones[i], MF_GSIZE);
 	}
 	s->current_sample = 0;
 	s->current_hit = 0;




More information about the asterisk-commits mailing list