Merge pull request #23 from alericoveri/osx-aluwf

AL_InitUnderwaterFilter wasn't being compiled conditionally
This commit is contained in:
Yamagi 2013-04-28 08:46:42 -07:00
commit b58b78714b

View file

@ -677,6 +677,7 @@ AL_InitStreamSource()
static void static void
AL_InitUnderwaterFilter() AL_InitUnderwaterFilter()
{ {
#if !defined (__APPLE__)
/* Generate a filter */ /* Generate a filter */
qalGenFilters(1, &underwaterFilter); qalGenFilters(1, &underwaterFilter);
@ -698,6 +699,7 @@ AL_InitUnderwaterFilter()
/* The effect */ /* The effect */
qalFilterf(underwaterFilter, AL_LOWPASS_GAIN, 1.5); qalFilterf(underwaterFilter, AL_LOWPASS_GAIN, 1.5);
qalFilterf(underwaterFilter, AL_LOWPASS_GAINHF, 0.25); qalFilterf(underwaterFilter, AL_LOWPASS_GAINHF, 0.25);
#endif
} }
/* /*