Mercurial > hg > audiostuff
comparison spandsp-0.0.3/spandsp-0.0.3/tests/line_model_monitor.h @ 5:f762bf195c4b
import spandsp-0.0.3
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 16:00:21 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:26cd8f1ef0b1 | 5:f762bf195c4b |
---|---|
1 /* | |
2 * SpanDSP - a series of DSP components for telephony | |
3 * | |
4 * line_model_monitor.h - Model activity in a telephone line model, using the FLTK toolkit. | |
5 * | |
6 * Written by Steve Underwood <steveu@coppice.org> | |
7 * | |
8 * Copyright (C) 2004 Steve Underwood | |
9 * | |
10 * All rights reserved. | |
11 * | |
12 * This program is free software; you can redistribute it and/or modify | |
13 * it under the terms of the GNU General Public License version 2, as | |
14 * published by the Free Software Foundation. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU General Public License | |
22 * along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
24 * | |
25 * $Id: line_model_monitor.h,v 1.2 2006/10/24 13:22:03 steveu Exp $ | |
26 */ | |
27 | |
28 /*! \page line_model_monitor_page Telephone line model monitoring | |
29 \section line_model_monitor_page_sec_1 What does it do? | |
30 This code controls a GUI window, which provides monitoring of the internal status | |
31 of a telephone line modem. It shows, graphically: | |
32 | |
33 - the spectrum of the received signal. | |
34 - the line model in use (when a known line model is being used). | |
35 - the adapted coefficients of the canceller. | |
36 | |
37 \section line_model_monitor_page_sec_2 How does it work? | |
38 This code uses the FLTK cross platform GUI toolkit. It works on X11 and Windows platforms. | |
39 In addition to the basic FLTK toolkit, fltk_cartesian is also required. | |
40 */ | |
41 | |
42 #if !defined(_LINE_MODEL_MONITOR_H_) | |
43 #define _LINE_MODEL_MONITOR_H_ | |
44 | |
45 #ifdef __cplusplus | |
46 extern "C" { | |
47 #endif | |
48 | |
49 int start_line_model_monitor(int len); | |
50 int line_model_monitor_can_update(const float *coeffs, int len); | |
51 int line_model_monitor_line_model_update(const float *coeffs, int len); | |
52 int line_model_monitor_line_spectrum_update(const int16_t amp[], int len); | |
53 void line_model_monitor_wait_to_end(void); | |
54 void line_model_monitor_update_display(void); | |
55 | |
56 #ifdef __cplusplus | |
57 } | |
58 #endif | |
59 | |
60 #endif | |
61 /*- End of file ------------------------------------------------------------*/ |