Browse Source

the AL_SOFT_direct_channels OpenAL extension shouldn't be required for compilation

Alex Szpakowski 11 years ago
parent
commit
de1f105e40
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/modules/audio/openal/Pool.cpp

+ 2 - 0
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]);
 	}