annotate src/audacious/fft.h @ 3043:59452118044d

MacOS (and others): Relocate libintl to a location where audacious can link to it automatically.
author William Pitcock <nenolod@atheme-project.org>
date Thu, 12 Jul 2007 06:01:51 -0500
parents cfc8431aceb5
children 3b6d316f8b09
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
1 /* Audacious - Cross-platform multimedia player
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
2 * Copyright (C) 2005-2007 Audacious development team
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
3 *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
4 * Copyright (C) 1999 Richard Boulton <richard@tartarus.org>
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
5 *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
6 * This program is free software; you can redistribute it and/or modify
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
8 * the Free Software Foundation; under version 2 of the License.
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
9 *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
13 * GNU General Public License for more details.
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
14 *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
16 * along with this program; if not, write to the Free Software
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
18 */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
19
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
20 /* fft.h: header for iterative implementation of a FFT */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
21
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2313
diff changeset
22 #ifndef FFT_H
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2313
diff changeset
23 #define FFT_H
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2313
diff changeset
24
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2313
diff changeset
25 #include <glib.h>
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
26
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
27 #define FFT_BUFFER_SIZE_LOG 9
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
28 #define FFT_BUFFER_SIZE (1 << FFT_BUFFER_SIZE_LOG)
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
29
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2313
diff changeset
30 /* sound sample - should be a signed 16 bit value */
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2313
diff changeset
31 typedef gint16 sound_sample;
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
32
2365
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2313
diff changeset
33 typedef struct _struct_fft_state fft_state;
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2313
diff changeset
34 fft_state *fft_init(void);
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2313
diff changeset
35 void fft_perform(const sound_sample * input, float *output, fft_state * state);
cfc8431aceb5 [svn] cleanups in many regards
mf0102
parents: 2313
diff changeset
36 void fft_close(fft_state * state);
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
37
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
38 #endif