Mercurial > audlegacy
annotate src/audacious/fft.h @ 3121:3b6d316f8b09 trunk
GPL3 relicensing.
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Fri, 20 Jul 2007 08:59:47 -0500 |
parents | cfc8431aceb5 |
children | f1c756f39e6c |
rev | line source |
---|---|
2313 | 1 /* Audacious - Cross-platform multimedia player |
2 * Copyright (C) 2005-2007 Audacious development team | |
3 * | |
4 * Copyright (C) 1999 Richard Boulton <richard@tartarus.org> | |
5 * | |
6 * This program is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2365
diff
changeset
|
8 * the Free Software Foundation; under version 3 of the License. |
2313 | 9 * |
10 * This program is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 * GNU General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU General Public License | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2365
diff
changeset
|
16 * along with this program. If not, see <http://www.gnu.org/licenses>. |
2313 | 17 */ |
18 | |
19 /* fft.h: header for iterative implementation of a FFT */ | |
20 | |
2365 | 21 #ifndef FFT_H |
22 #define FFT_H | |
23 | |
24 #include <glib.h> | |
2313 | 25 |
26 #define FFT_BUFFER_SIZE_LOG 9 | |
27 #define FFT_BUFFER_SIZE (1 << FFT_BUFFER_SIZE_LOG) | |
28 | |
2365 | 29 /* sound sample - should be a signed 16 bit value */ |
30 typedef gint16 sound_sample; | |
2313 | 31 |
2365 | 32 typedef struct _struct_fft_state fft_state; |
33 fft_state *fft_init(void); | |
34 void fft_perform(const sound_sample * input, float *output, fft_state * state); | |
35 void fft_close(fft_state * state); | |
2313 | 36 |
37 #endif |