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
|
|
8 * the Free Software Foundation; under version 2 of the License.
|
|
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
|
|
16 * along with this program; if not, write to the Free Software
|
|
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
18 */
|
|
19
|
|
20 /* fft.h: header for iterative implementation of a FFT */
|
|
21
|
2365
|
22 #ifndef FFT_H
|
|
23 #define FFT_H
|
|
24
|
|
25 #include <glib.h>
|
2313
|
26
|
|
27 #define FFT_BUFFER_SIZE_LOG 9
|
|
28 #define FFT_BUFFER_SIZE (1 << FFT_BUFFER_SIZE_LOG)
|
|
29
|
2365
|
30 /* sound sample - should be a signed 16 bit value */
|
|
31 typedef gint16 sound_sample;
|
2313
|
32
|
2365
|
33 typedef struct _struct_fft_state fft_state;
|
|
34 fft_state *fft_init(void);
|
|
35 void fft_perform(const sound_sample * input, float *output, fft_state * state);
|
|
36 void fft_close(fft_state * state);
|
2313
|
37
|
|
38 #endif
|