aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-10-02 22:20:42 -0700
committerChris Robinson <[email protected]>2008-10-02 22:20:42 -0700
commit3863dcc9cb1b49ee028ccfacaf0a238dcb5de29c (patch)
treefafb9e0d306fcb77a6238a35935348ce1036ea52 /OpenAL32/Include
parenta2568409fce7cc6b5c2537fe095fa910afb0561c (diff)
Use a new low-pass filter, based on the I3DL2 spec
Many thanks to Christopher Fitzgerald, for helping with it
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alFilter.h6
-rw-r--r--OpenAL32/Include/alSource.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h
index 83912cfa..11cb45cd 100644
--- a/OpenAL32/Include/alFilter.h
+++ b/OpenAL32/Include/alFilter.h
@@ -8,8 +8,8 @@ extern "C" {
#endif
typedef struct {
- float history[2]; /* history in filter */
- float coef[4 + 1]; /* coefficients of filter */
+ ALfloat history[4];
+ ALfloat coeff;
} FILTER;
#define AL_FILTER_TYPE 0x8001
@@ -53,8 +53,6 @@ ALvoid AL_APIENTRY alGetFilterfv(ALuint filter, ALenum param, ALfloat *pflValues
ALvoid ReleaseALFilters(ALvoid);
-int InitLowPassFilter(ALCcontext *Context, FILTER *iir);
-
#ifdef __cplusplus
}
#endif
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 976921f9..753553b2 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -69,6 +69,7 @@ typedef struct ALsource
struct {
struct ALeffectslot *Slot;
ALfilter WetFilter;
+ FILTER iirFilter;
} Send[MAX_SENDS];
ALboolean DryGainHFAuto;
@@ -98,8 +99,6 @@ typedef struct ALsource
// Current gains, which are ramped while mixed
ALfloat DryGains[OUTPUTCHANNELS];
ALfloat WetGains[OUTPUTCHANNELS];
- ALfloat DryGainHF;
- ALfloat WetGainHF;
struct ALsource *next;
} ALsource;