summaryrefslogtreecommitdiffstats
path: root/libao2/eq.h
diff options
context:
space:
mode:
authoranders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-15 06:15:07 +0000
committeranders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-15 06:15:07 +0000
commitee6efd29d9d85f49ea0c376446711fffc1b1736d (patch)
tree94ffcafbd313483ec677f5bdd29ad25b75cdb00c /libao2/eq.h
parent6ffc321d43ceec4048220bf608e0605696c35e96 (diff)
downloadmpv-ee6efd29d9d85f49ea0c376446711fffc1b1736d.tar.bz2
mpv-ee6efd29d9d85f49ea0c376446711fffc1b1736d.tar.xz
Adding equalizer plugin
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6431 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/eq.h')
-rw-r--r--libao2/eq.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/libao2/eq.h b/libao2/eq.h
new file mode 100644
index 0000000000..dab6e96d65
--- /dev/null
+++ b/libao2/eq.h
@@ -0,0 +1,36 @@
+/*=============================================================================
+//
+// This software has been released under the terms of the GNU Public
+// license. See http://www.gnu.org/copyleft/gpl.html for details.
+//
+// Copyright 2001 Anders Johansson ajh@atri.curtin.edu.au
+//
+//=============================================================================
+*/
+
+/* Equalizer plugin header file defines struct used for setting or
+ getting the gain of a specific channel and frequency */
+
+typedef struct equalizer_s
+{
+ float gain; // Gain in db -15 - 15
+ int channel; // Channel number 0 - 5
+ int band; // Frequency band 0 - 9
+}equalizer_t;
+
+/* The different frequency bands are:
+nr. center frequency
+0 31.25 Hz
+1 62.50 Hz
+2 125.0 Hz
+3 250.0 Hz
+4 500.0 Hz
+5 1.000 kHz
+6 2.000 kHz
+7 4.000 kHz
+8 8.000 kHz
+9 16.00 kHz
+*/
+
+#define AOCONTROL_PLUGIN_EQ_SET_GAIN 2 // Use this to set the gain
+#define AOCONTROL_PLUGIN_EQ_GET_GAIN 3 // Use this to get the gain