aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alFilter.h2
-rw-r--r--OpenAL32/alSource.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h
index 6f6db231..07b3f90b 100644
--- a/OpenAL32/Include/alFilter.h
+++ b/OpenAL32/Include/alFilter.h
@@ -7,7 +7,7 @@
extern "C" {
#endif
-#define LOWPASSFREQREF (5000)
+#define LOWPASSFREQREF (5000.0f)
/* Filters implementation is based on the "Cookbook formulae for audio *
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index e057acb1..5e24e848 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -2314,12 +2314,12 @@ static ALvoid InitSourceParams(ALsource *Source)
Source->Direct.Gain = 1.0f;
Source->Direct.GainHF = 1.0f;
- Source->Direct.HFReference = (ALfloat)LOWPASSFREQREF;
+ Source->Direct.HFReference = 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->Send[i].HFReference = LOWPASSFREQREF;
}
Source->NeedsUpdate = AL_TRUE;