aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-27 19:55:00 -0700
committerChris Robinson <[email protected]>2013-05-27 19:55:00 -0700
commit0c7c5327c9245cc5ce9fef764f794ef3fd58ce0b (patch)
treeecfbebbdc3b84b168a11ff9d35046631e019ada5 /OpenAL32/Include
parent3e663d730718a3f0a8946435eb618d16eb18212b (diff)
Use ALfilterState for the master echo and reverb filters
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alFilter.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h
index dc981df7..dd5edbb9 100644
--- a/OpenAL32/Include/alFilter.h
+++ b/OpenAL32/Include/alFilter.h
@@ -9,25 +9,6 @@ extern "C" {
#define LOWPASSFREQREF (5000)
-typedef struct {
- ALfloat coeff;
- ALfloat history[2];
-} FILTER;
-
-static __inline ALfloat lpFilter2P(FILTER *iir, ALfloat input)
-{
- ALfloat *history = iir->history;
- ALfloat a = iir->coeff;
- ALfloat output = input;
-
- output = output + (history[0]-output)*a;
- history[0] = output;
- output = output + (history[1]-output)*a;
- history[1] = output;
-
- return output;
-}
-
/* Calculates the low-pass filter coefficient given the pre-scaled gain and
* cos(w) value. Note that g should be pre-scaled (sqr(gain) for one-pole,
* sqrt(gain) for four-pole, etc) */