-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathInitialize_data.c
54 lines (48 loc) · 1.31 KB
/
Initialize_data.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*-------------------------------------------------------------------------------------------------------
--ECSE 494 Electrical Engineering Design Project
--
--Project Name: Acoustic Echo Cancellation
--
--Authors: Mr Kunal Jathal - kunal.jathal@mail.mcgill.ca,
-- Mr Asrar Rangwala - asrar.rangwala@mail.mcgill.ca
--
--Copyright (C) 2006 Deep Thought
--Version 1.0
--Date Modified: May 9th, 2006
--
--File name: Initialize_Data.c
--
--Software: VisualDSP++3.5
--Hardware: ADSP-BF533 EZ-KIT Board
--
--Purpose: Initialize the arrays that contain the input samples and the lms filter
-- filter coefficients.
------------------------------------------------------------------------------------------------------*/
#include "Talkthrough.h"
//Initialize echo input delay buffer
void Init_Echo_Delayed_Input(void)
{
int i;
for(i=0; i<echo_TAP_NUM; i++)
{
echo_delayed_input[i] = 0;
}
}
//Initialize adaptive lms input delay buffer
void Init_Lms_Delayed_Input(void)
{
int i;
for(i=0; i<lms_TAP_NUM; i++)
{
lms_delayed_input[i] = 0;
}
}
//Initialize adaptive lms filter coeff buffer
void Init_Lms_Filter_Coeff(void)
{
int i;
for(i=0; i<lms_TAP_NUM; i++)
{
lms_filter_coeff[i] = 0;
}
}