summaryrefslogtreecommitdiff
path: root/src/post/audio/window.h
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2004-05-15 18:22:26 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2004-05-15 18:22:26 +0000
commit1861b5d7bdf9fb669633b9ee471f6c57a5633b83 (patch)
treeb0092eaa4751d8f380375e8442c6728b23f6d447 /src/post/audio/window.h
parentca40c07778b4b6ad3814225fed05006f48c8477e (diff)
downloadxine-lib-1861b5d7bdf9fb669633b9ee471f6c57a5633b83.tar.gz
xine-lib-1861b5d7bdf9fb669633b9ee471f6c57a5633b83.tar.bz2
Port subwoofer filter from mplayer.
CVS patchset: 6543 CVS date: 2004/05/15 18:22:26
Diffstat (limited to 'src/post/audio/window.h')
-rw-r--r--src/post/audio/window.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/post/audio/window.h b/src/post/audio/window.h
new file mode 100644
index 000000000..bd747306c
--- /dev/null
+++ b/src/post/audio/window.h
@@ -0,0 +1,33 @@
+/*=============================================================================
+//
+// 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
+//
+//=============================================================================
+*/
+
+/* Calculates a number of window functions. The following window
+ functions are currently implemented: Boxcar, Triang, Hanning,
+ Hamming, Blackman, Flattop and Kaiser. In the function call n is
+ the number of filter taps and w the buffer in which the filter
+ coefficients will be stored.
+*/
+
+#if !defined _DSP_H
+# error "Never use <window.h> directly; include <dsp.h> instead"
+#endif
+
+#ifndef _WINDOW_H
+#define _WINDOW_H 1
+
+extern void boxcar(int n, _ftype_t* w);
+extern void triang(int n, _ftype_t* w);
+extern void hanning(int n, _ftype_t* w);
+extern void hamming(int n,_ftype_t* w);
+extern void blackman(int n,_ftype_t* w);
+extern void flattop(int n,_ftype_t* w);
+extern void kaiser(int n, _ftype_t* w,_ftype_t b);
+
+#endif