Mercurial > audlegacy
annotate src/audacious/fft.h @ 4557:2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 19 May 2008 01:29:46 +0300 |
parents | 5a0f5ef1de61 |
children |
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>. |
3123
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
17 * |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
18 * The Audacious team does not consider modular code linking to |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
19 * Audacious or using our public API to be a derived work. |
2313 | 20 */ |
21 | |
22 /* fft.h: header for iterative implementation of a FFT */ | |
23 | |
4557
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
4407
diff
changeset
|
24 #ifndef AUDACIOUS_FFT_H |
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
4407
diff
changeset
|
25 #define AUDACIOUS_FFT_H |
2365 | 26 |
27 #include <glib.h> | |
2313 | 28 |
4407
5a0f5ef1de61
Some stupid header cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
3123
diff
changeset
|
29 G_BEGIN_DECLS |
5a0f5ef1de61
Some stupid header cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
3123
diff
changeset
|
30 |
2313 | 31 #define FFT_BUFFER_SIZE_LOG 9 |
32 #define FFT_BUFFER_SIZE (1 << FFT_BUFFER_SIZE_LOG) | |
33 | |
2365 | 34 /* sound sample - should be a signed 16 bit value */ |
35 typedef gint16 sound_sample; | |
2313 | 36 |
2365 | 37 typedef struct _struct_fft_state fft_state; |
38 fft_state *fft_init(void); | |
39 void fft_perform(const sound_sample * input, float *output, fft_state * state); | |
40 void fft_close(fft_state * state); | |
2313 | 41 |
4407
5a0f5ef1de61
Some stupid header cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
3123
diff
changeset
|
42 G_END_DECLS |
5a0f5ef1de61
Some stupid header cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
3123
diff
changeset
|
43 |
4557
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
4407
diff
changeset
|
44 #endif /* AUDACIOUS_FFT_H */ |