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

This commit is contained in:
Boolsheet
2012-05-29 23:37:25 +02:00
parent 73672bd674
commit ee1b679639
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -41,7 +41,13 @@ namespace openal
// 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()
+1
View File
@@ -39,6 +39,7 @@
#else
#include <AL/alc.h>
#include <AL/al.h>
#include <AL/alext.h>
#endif
namespace love