Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/src/spandsp/swept_tone.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 * swept_tone.h - Swept tone generation | |
5 * | |
6 * Written by Steve Underwood <steveu@coppice.org> | |
7 * | |
8 * Copyright (C) 2009 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: swept_tone.h,v 1.1 2009/09/22 12:54:33 steveu Exp $ | |
26 */ | |
27 | |
28 /*! \file */ | |
29 | |
30 #if !defined(_SPANDSP_SWEPT_TONE_H_) | |
31 #define _SPANDSP_SWEPT_TONE_H_ | |
32 | |
33 /*! \page swept_tone_page The swept tone generator | |
34 \section swept_tone_page_sec_1 What does it do? | |
35 */ | |
36 | |
37 typedef struct swept_tone_state_s swept_tone_state_t; | |
38 | |
39 #if defined(__cplusplus) | |
40 extern "C" | |
41 { | |
42 #endif | |
43 | |
44 SPAN_DECLARE(swept_tone_state_t *) swept_tone_init(swept_tone_state_t *s, float start, float end, float level, int duration, int repeating); | |
45 | |
46 SPAN_DECLARE(int) swept_tone(swept_tone_state_t *s, int16_t amp[], int len); | |
47 | |
48 SPAN_DECLARE(float) swept_tone_current_frequency(swept_tone_state_t *s); | |
49 | |
50 SPAN_DECLARE(int) swept_tone_release(swept_tone_state_t *s); | |
51 | |
52 SPAN_DECLARE(int) swept_tone_free(swept_tone_state_t *s); | |
53 | |
54 #if defined(__cplusplus) | |
55 } | |
56 #endif | |
57 | |
58 #endif | |
59 /*- End of file ------------------------------------------------------------*/ |