mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Fix 2nd harmonic on MF
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										2
									
								
								dsp.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dsp.c
									
									
									
									
									
								
							| @@ -718,7 +718,7 @@ static int mf_detect (mf_detect_state_t *s, | ||||
| 			/* Check for 2nd harmonic */ | ||||
| 			if (goertzel_result(&s->tone_out2nd[best1]) * MF_2ND_HARMONIC > tone_energy[best1])  | ||||
| 				sofarsogood = 0; | ||||
| 			else if (goertzel_result(&s->tone_out2nd[best1]) * MF_2ND_HARMONIC > tone_energy[best2]) | ||||
| 			else if (goertzel_result(&s->tone_out2nd[best2]) * MF_2ND_HARMONIC > tone_energy[best2]) | ||||
| 				sofarsogood = 0; | ||||
| 		} | ||||
| 		if (sofarsogood) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user