Browse Source

audio: remove AL_DIRECT_CHANNELS usage.

It only works sometimes and it conflicts with toggling spatialization / HRTF output globally.
Sasha Szpakowski 2 tháng trước cách đây
mục cha
commit
f50558bb1d
1 tập tin đã thay đổi với 0 bổ sung14 xóa
  1. 0 14
      src/modules/audio/openal/Pool.cpp

+ 0 - 14
src/modules/audio/openal/Pool.cpp

@@ -65,23 +65,9 @@ Pool::Pool(ALCdevice *device)
 	if (totalSources < 4)
 	if (totalSources < 4)
 		throw love::Exception("Could not generate sources.");
 		throw love::Exception("Could not generate sources.");
 
 
-#ifdef AL_SOFT_direct_channels
-	ALboolean hasext = alIsExtensionPresent("AL_SOFT_direct_channels");
-#endif
-
 	// Make all sources available initially.
 	// Make all sources available initially.
 	for (int i = 0; i < totalSources; i++)
 	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]);
 		available.push(sources[i]);
-	}
 }
 }
 
 
 Pool::~Pool()
 Pool::~Pool()