Commits

Boolsheet committed a38139d

Use OpenAL's direct channel features, should improve audio quality

  • Participants
  • Parent commits cfb46ab

Comments (0)

Files changed (2)

File src/modules/audio/openal/Pool.cpp

 
 		// Make all sources available initially.
 		for (int i = 0; i < NUM_SOURCES; i++)
+		{
+#ifdef AL_DIRECT_CHANNELS_SOFT
+			// Bypassing virtualization of speakers for multi-channel sources in OpenAL Soft.
+			alSourcei(sources[i], AL_DIRECT_CHANNELS_SOFT, AL_TRUE);
+#endif
 			available.push(sources[i]);
+		}
 	}
 
 	Pool::~Pool()

File src/modules/audio/openal/Pool.h

 #else
 #include <AL/alc.h>
 #include <AL/al.h>
+#include <AL/alext.h>
 #endif
 
 namespace love