From de1f105e40cc2d1da67a5d6a054a1d41138e0ff5 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 8 Feb 2014 02:43:13 -0400 Subject: [PATCH] the AL_SOFT_direct_channels OpenAL extension shouldn't be required for compilation --- src/modules/audio/openal/Pool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/audio/openal/Pool.cpp b/src/modules/audio/openal/Pool.cpp index f8e613394..8d239f4d7 100644 --- a/src/modules/audio/openal/Pool.cpp +++ b/src/modules/audio/openal/Pool.cpp @@ -61,11 +61,13 @@ Pool::Pool() // Make all sources available initially. for (int i = 0; i < totalSources; i++) { +#ifdef AL_SOFT_direct_channels if (hasext) { // Bypass virtualization of speakers for multi-channel sources in OpenAL Soft. alSourcei(sources[i], AL_DIRECT_CHANNELS_SOFT, AL_TRUE); } +#endif available.push(sources[i]); }