annotate libaf/equalizer.h @ 26133:94cc4bac8cd0

Turn ancient V offset numerical constants into named ones. Add a check that checks that the width is within the chosen constant. This might have been exploitable.
author michael
date Wed, 05 Mar 2008 03:00:25 +0000
parents 4129c8cfa742
children 72d0b1444141
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8077
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
1 /*=============================================================================
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
2 //
13602
14090f7300a8 The full name of the GPL is GNU General Public License.
diego
parents: 8077
diff changeset
3 // This software has been released under the terms of the GNU General Public
8077
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
4 // license. See http://www.gnu.org/copyleft/gpl.html for details.
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
5 //
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
6 // Copyright 2002 Anders Johansson ajh@atri.curtin.edu.au
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
7 //
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
8 //=============================================================================
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
9 */
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
10
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25553
diff changeset
11 #ifndef MPLAYER_EQUALIZER_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25553
diff changeset
12 #define MPLAYER_EQUALIZER_H
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 13602
diff changeset
13
8077
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
14 /* Equalizer plugin header file defines struct used for setting or
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
15 getting the gain of a specific channel and frequency */
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
16
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
17 typedef struct equalizer_s
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
18 {
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
19 float gain; // Gain in dB -15 - 15
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
20 int channel; // Channel number 0 - 5
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
21 int band; // Frequency band 0 - 9
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
22 }equalizer_t;
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
23
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
24 /* The different frequency bands are:
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
25 nr. center frequency
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
26 0 31.25 Hz
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
27 1 62.50 Hz
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
28 2 125.0 Hz
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
29 3 250.0 Hz
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
30 4 500.0 Hz
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
31 5 1.000 kHz
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
32 6 2.000 kHz
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
33 7 4.000 kHz
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
34 8 8.000 kHz
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
35 9 16.00 kHz
d1afa3b8a773 Header file for eq
anders
parents:
diff changeset
36 */
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 13602
diff changeset
37
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25553
diff changeset
38 #endif /* MPLAYER_EQUALIZER_H */