Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/src/spandsp/private/modem_echo.h @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Fri, 25 Jun 2010 15:50:58 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
|---|---|
| 1 /* | |
| 2 * SpanDSP - a series of DSP components for telephony | |
| 3 * | |
| 4 * private/modem_echo.h - An echo cancellor, suitable for electrical echos in GSTN modems | |
| 5 * | |
| 6 * Written by Steve Underwood <steveu@coppice.org> | |
| 7 * | |
| 8 * Copyright (C) 2001, 2004 Steve Underwood | |
| 9 * | |
| 10 * Based on a bit from here, a bit from there, eye of toad, | |
| 11 * ear of bat, etc - plus, of course, my own 2 cents. | |
| 12 * | |
| 13 * All rights reserved. | |
| 14 * | |
| 15 * This program is free software; you can redistribute it and/or modify | |
| 16 * it under the terms of the GNU Lesser General Public License version 2.1, | |
| 17 * as published by the Free Software Foundation. | |
| 18 * | |
| 19 * This program is distributed in the hope that it will be useful, | |
| 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 22 * GNU Lesser General Public License for more details. | |
| 23 * | |
| 24 * You should have received a copy of the GNU Lesser General Public | |
| 25 * License along with this program; if not, write to the Free Software | |
| 26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
| 27 * | |
| 28 * $Id: modem_echo.h,v 1.1 2009/09/22 13:11:04 steveu Exp $ | |
| 29 */ | |
| 30 | |
| 31 /*! \file */ | |
| 32 | |
| 33 #if !defined(_SPANDSP_PRIVATE_MODEM_ECHO_H_) | |
| 34 #define _SPANDSP_PRIVATE_MODEM_ECHO_H_ | |
| 35 | |
| 36 /*! | |
| 37 Modem line echo canceller descriptor. This defines the working state for a line | |
| 38 echo canceller. | |
| 39 */ | |
| 40 struct modem_echo_can_state_s | |
| 41 { | |
| 42 int adapt; | |
| 43 int taps; | |
| 44 | |
| 45 fir16_state_t fir_state; | |
| 46 /*! Echo FIR taps (16 bit version) */ | |
| 47 int16_t *fir_taps16; | |
| 48 /*! Echo FIR taps (32 bit version) */ | |
| 49 int32_t *fir_taps32; | |
| 50 | |
| 51 int tx_power; | |
| 52 int rx_power; | |
| 53 | |
| 54 int curr_pos; | |
| 55 }; | |
| 56 | |
| 57 #endif | |
| 58 /*- End of file ------------------------------------------------------------*/ |
