diff options
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alSource.h | 2 | ||||
-rw-r--r-- | OpenAL32/alSource.c | 2 |
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; |