mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
the AL_SOFT_direct_channels OpenAL extension shouldn't be required for compilation
This commit is contained in:
@@ -61,11 +61,13 @@ Pool::Pool()
|
|||||||
// 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)
|
if (hasext)
|
||||||
{
|
{
|
||||||
// Bypass virtualization of speakers for multi-channel sources in OpenAL Soft.
|
// Bypass virtualization of speakers for multi-channel sources in OpenAL Soft.
|
||||||
alSourcei(sources[i], AL_DIRECT_CHANNELS_SOFT, AL_TRUE);
|
alSourcei(sources[i], AL_DIRECT_CHANNELS_SOFT, AL_TRUE);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
available.push(sources[i]);
|
available.push(sources[i]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user