Mercurial > audlegacy
annotate audacious/fft.h @ 2161:c12319817d7e trunk
[svn] - patch to add a scrolling voiceprint to the mini visualizer.
Patch by: Troels Bang Jensen ([Marvin] on #audacious).
author | nenolod |
---|---|
date | Mon, 18 Dec 2006 08:44:33 -0800 |
parents | f18a5b617c34 |
children | 86f0443d0de2 |
rev | line source |
---|---|
0 | 1 /* fft.h: Header for iterative implementation of a FFT |
2 * Copyright (C) 1999 Richard Boulton <richard@tartarus.org> | |
3 * | |
4 * This program is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
2105
f18a5b617c34
[svn] - move to GPLv2-only. Based on my interpretation of the license, we are
nenolod
parents:
1459
diff
changeset
|
6 * the Free Software Foundation; under version 2 of the License. |
0 | 7 * |
8 * This program is distributed in the hope that it will be useful, | |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 * GNU General Public License for more details. | |
12 * | |
13 * You should have received a copy of the GNU General Public License | |
14 * along with this program; if not, write to the Free Software | |
1459 | 15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
0 | 16 */ |
17 | |
18 #ifndef _FFT_H_ | |
19 #define _FFT_H_ | |
20 | |
21 #define FFT_BUFFER_SIZE_LOG 9 | |
22 | |
23 #define FFT_BUFFER_SIZE (1 << FFT_BUFFER_SIZE_LOG) | |
24 | |
25 /* sound sample - should be an signed 16 bit value */ | |
26 typedef short int sound_sample; | |
27 | |
28 #ifdef __cplusplus | |
29 extern "C" { | |
30 #endif | |
31 | |
32 /* FFT library */ | |
33 typedef struct _struct_fft_state fft_state; | |
34 fft_state *fft_init(void); | |
35 void fft_perform(const sound_sample * input, float *output, | |
36 fft_state * state); | |
37 void fft_close(fft_state * state); | |
38 | |
39 | |
40 | |
41 #ifdef __cplusplus | |
42 } | |
43 #endif | |
44 #endif /* _FFT_H_ */ |