summaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-04-16 05:43:09 -0700
committerChris Robinson <[email protected]>2009-04-16 05:43:09 -0700
commit7a7a4844f441a2d269cffdadfd553655a8d3484e (patch)
tree88b4c2cb05f724ff91154602db53267fec55933d /OpenAL32/Include
parenta2adbb1ab50e788006322264bc41535e5acee116 (diff)
Make the filter history buffer size flexible
This lets the filter history buffer be as big as needed for a given use, so that it can have a size large enough for the more demanding cases, but not be wasteful for lesser-demanding cases, while not incuring the overhead of an added pointer indirection
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alFilter.h2
-rw-r--r--OpenAL32/Include/alSource.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h
index 413f2a12..40fff4fd 100644
--- a/OpenAL32/Include/alFilter.h
+++ b/OpenAL32/Include/alFilter.h
@@ -9,8 +9,8 @@ extern "C" {
#endif
typedef struct {
- ALfloat history[OUTPUTCHANNELS*2];
ALfloat coeff;
+ ALfloat history[0];
} FILTER;
#define AL_FILTER_TYPE 0x8001
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 28a85029..2bd7aac2 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -69,6 +69,7 @@ typedef struct ALsource
struct ALeffectslot *Slot;
ALfilter WetFilter;
FILTER iirFilter;
+ ALfloat history[2];
} Send[MAX_SENDS];
ALboolean DryGainHFAuto;
@@ -77,6 +78,7 @@ typedef struct ALsource
ALfloat OuterGainHF;
FILTER iirFilter;
+ ALfloat history[OUTPUTCHANNELS*2];
ALfloat AirAbsorptionFactor;