summaryrefslogtreecommitdiff
path: root/mec3-float.h
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-12-17 02:19:03 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-12-17 02:19:03 +0000
commite2cab742b1d41becf87d7b21e4b451370e8a7c12 (patch)
tree2766ab70c7472182f7adeca4b66bd8545b0170e3 /mec3-float.h
parent51be44f5b34ffe5032414266787aca1aa8213316 (diff)
don't include the echo canceller headers in every module that includes zaptel.h... instead, only in zaptel.c
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@867 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'mec3-float.h')
-rw-r--r--mec3-float.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/mec3-float.h b/mec3-float.h
index b5e0109..12c3038 100644
--- a/mec3-float.h
+++ b/mec3-float.h
@@ -63,7 +63,7 @@ typedef struct {
int maxexp;
} cbuf_f;
-typedef struct {
+struct echo_can_state {
float a[NTAPS]; /* Coefficients */
#ifdef COEFF_BACKUP
float b[NTAPS]; /* Coefficients */
@@ -77,9 +77,9 @@ typedef struct {
int taps; /* Number of taps */
int hcntr; /* Hangtime counter */
int pos; /* Position in curcular buffers */
-} echo_can_state_t;
+};
-static inline void echo_can_free(echo_can_state_t *ec)
+static inline void echo_can_free(struct echo_can_state *ec)
{
FREE(ec);
}
@@ -106,7 +106,7 @@ static inline void buf_add(cbuf_f *b, float sample, int pos, int taps)
}
}
-static inline short echo_can_update(echo_can_state_t *ec, short iref, short isig)
+static inline short echo_can_update(struct echo_can_state *ec, short iref, short isig)
{
int x;
float ref;
@@ -210,14 +210,14 @@ static inline short echo_can_update(echo_can_state_t *ec, short iref, short isig
return (short)(u);
}
-static inline echo_can_state_t *echo_can_create(int taps, int adaption_mode)
+static inline struct echo_can_state *echo_can_create(int taps, int adaption_mode)
{
- echo_can_state_t *ec;
+ struct echo_can_state *ec;
taps = NTAPS;
- ec = MALLOC(sizeof(echo_can_state_t));
+ ec = MALLOC(sizeof(struct echo_can_state));
if (ec) {
printk("Allocating MEC3 canceller (%d)\n", taps);
- memset(ec, 0, sizeof(echo_can_state_t));
+ memset(ec, 0, sizeof(struct echo_can_state));
ec->taps = taps;
if (ec->taps > NTAPS)
ec->taps = NTAPS;