mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Use OpenAL's direct channel features, should improve audio quality
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#else
|
||||
#include <AL/alc.h>
|
||||
#include <AL/al.h>
|
||||
#include <AL/alext.h>
|
||||
#endif
|
||||
|
||||
namespace love
|
||||
|
||||
Reference in New Issue
Block a user