aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-17 08:05:49 -0700
committerChris Robinson <[email protected]>2014-05-17 08:05:49 -0700
commitcd53a4b74c8bb2b1f8add3f95493f595cea548f9 (patch)
tree4f10aa2e3c815f85739d87eb04d0c6ea0ba620bb
parent190ab90c0d65a6e90ca96d31bc42f55a3023df5f (diff)
Reset filter properties when setting a null filter type
-rw-r--r--OpenAL32/alFilter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c
index 24e70766..ad204bfc 100644
--- a/OpenAL32/alFilter.c
+++ b/OpenAL32/alFilter.c
@@ -680,6 +680,12 @@ static void InitFilterParams(ALfilter *filter, ALenum type)
}
else
{
+ filter->Gain = 1.0f;
+ filter->GainHF = 1.0f;
+ filter->HFReference = LOWPASSFREQREF;
+ filter->GainLF = 1.0f;
+ filter->LFReference = HIGHPASSFREQREF;
+
filter->SetParami = null_SetParami;
filter->SetParamiv = null_SetParamiv;
filter->SetParamf = null_SetParamf;