aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-11 10:07:17 -0700
committerChris Robinson <[email protected]>2014-05-11 10:07:17 -0700
commit343200d2296f8ceb14371d12d6032056ec7fb9a3 (patch)
tree48c42a51476b862eabec4d71c801691dbb84928a /OpenAL32
parent58235bec174e97790c7567327521dfa9e2c16bdf (diff)
Store the filter reference frequency in the source
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alSource.h2
-rw-r--r--OpenAL32/alSource.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 4a5830a6..43e5bdf6 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -108,11 +108,13 @@ typedef struct ALsource {
struct {
ALfloat Gain;
ALfloat GainHF;
+ ALfloat HFReference;
} Direct;
struct {
struct ALeffectslot *Slot;
ALfloat Gain;
ALfloat GainHF;
+ ALfloat HFReference;
} Send[MAX_SENDS];
/** Source needs to update its mixing parameters. */
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index f0fb374f..e057acb1 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -2314,10 +2314,12 @@ static ALvoid InitSourceParams(ALsource *Source)
Source->Direct.Gain = 1.0f;
Source->Direct.GainHF = 1.0f;
+ Source->Direct.HFReference = (ALfloat)LOWPASSFREQREF;
for(i = 0;i < MAX_SENDS;i++)
{
Source->Send[i].Gain = 1.0f;
Source->Send[i].GainHF = 1.0f;
+ Source->Send[i].HFReference = (ALfloat)LOWPASSFREQREF;
}
Source->NeedsUpdate = AL_TRUE;