annotate libao2/eq.h @ 8150:851e974e6eaa

updating
author pontscho
date Mon, 11 Nov 2002 16:57:09 +0000
parents a2173bfdc133
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6430
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
1 /*=============================================================================
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
2 //
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
3 // This software has been released under the terms of the GNU Public
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
4 // license. See http://www.gnu.org/copyleft/gpl.html for details.
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
5 //
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
6 // Copyright 2001 Anders Johansson ajh@atri.curtin.edu.au
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
7 //
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
8 //=============================================================================
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
9 */
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
10
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
11 /* Equalizer plugin header file defines struct used for setting or
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
12 getting the gain of a specific channel and frequency */
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
13
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
14 typedef struct equalizer_s
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
15 {
7507
a2173bfdc133 Correction of spelling errors and removal of old code
anders
parents: 6430
diff changeset
16 float gain; // Gain in dB -15 - 15
6430
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
17 int channel; // Channel number 0 - 5
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
18 int band; // Frequency band 0 - 9
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
19 }equalizer_t;
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
20
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
21 /* The different frequency bands are:
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
22 nr. center frequency
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
23 0 31.25 Hz
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
24 1 62.50 Hz
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
25 2 125.0 Hz
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
26 3 250.0 Hz
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
27 4 500.0 Hz
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
28 5 1.000 kHz
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
29 6 2.000 kHz
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
30 7 4.000 kHz
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
31 8 8.000 kHz
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
32 9 16.00 kHz
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
33 */
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
34
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
35 #define AOCONTROL_PLUGIN_EQ_SET_GAIN 2 // Use this to set the gain
97857ca97a8f Adding equalizer plugin
anders
parents:
diff changeset
36 #define AOCONTROL_PLUGIN_EQ_GET_GAIN 3 // Use this to get the gain