mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 23:05:38 +00:00
update openal
This commit is contained in:
parent
62f3b93ff9
commit
6721a6b021
287 changed files with 33851 additions and 27325 deletions
|
|
@ -3,19 +3,22 @@
|
|||
|
||||
#include "device.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <numeric>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "al/buffer.h"
|
||||
#include "al/effect.h"
|
||||
#include "al/filter.h"
|
||||
#include "albit.h"
|
||||
#include "alconfig.h"
|
||||
#include "alnumeric.h"
|
||||
#include "atomic.h"
|
||||
#include "backends/base.h"
|
||||
#include "core/bformatdec.h"
|
||||
#include "core/bs2b.h"
|
||||
#include "core/front_stablizer.h"
|
||||
#include "core/devformat.h"
|
||||
#include "core/hrtf.h"
|
||||
#include "core/logging.h"
|
||||
#include "core/mastering.h"
|
||||
#include "core/uhjfilter.h"
|
||||
#include "flexarray.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
|
@ -34,19 +37,19 @@ ALCdevice::~ALCdevice()
|
|||
|
||||
Backend = nullptr;
|
||||
|
||||
size_t count{std::accumulate(BufferList.cbegin(), BufferList.cend(), size_t{0u},
|
||||
size_t count{std::accumulate(BufferList.cbegin(), BufferList.cend(), 0_uz,
|
||||
[](size_t cur, const BufferSubList &sublist) noexcept -> size_t
|
||||
{ return cur + static_cast<uint>(al::popcount(~sublist.FreeMask)); })};
|
||||
if(count > 0)
|
||||
WARN("%zu Buffer%s not deleted\n", count, (count==1)?"":"s");
|
||||
|
||||
count = std::accumulate(EffectList.cbegin(), EffectList.cend(), size_t{0u},
|
||||
count = std::accumulate(EffectList.cbegin(), EffectList.cend(), 0_uz,
|
||||
[](size_t cur, const EffectSubList &sublist) noexcept -> size_t
|
||||
{ return cur + static_cast<uint>(al::popcount(~sublist.FreeMask)); });
|
||||
if(count > 0)
|
||||
WARN("%zu Effect%s not deleted\n", count, (count==1)?"":"s");
|
||||
|
||||
count = std::accumulate(FilterList.cbegin(), FilterList.cend(), size_t{0u},
|
||||
count = std::accumulate(FilterList.cbegin(), FilterList.cend(), 0_uz,
|
||||
[](size_t cur, const FilterSubList &sublist) noexcept -> size_t
|
||||
{ return cur + static_cast<uint>(al::popcount(~sublist.FreeMask)); });
|
||||
if(count > 0)
|
||||
|
|
@ -55,8 +58,8 @@ ALCdevice::~ALCdevice()
|
|||
|
||||
void ALCdevice::enumerateHrtfs()
|
||||
{
|
||||
mHrtfList = EnumerateHrtf(configValue<std::string>(nullptr, "hrtf-paths"));
|
||||
if(auto defhrtfopt = configValue<std::string>(nullptr, "default-hrtf"))
|
||||
mHrtfList = EnumerateHrtf(configValue<std::string>({}, "hrtf-paths"));
|
||||
if(auto defhrtfopt = configValue<std::string>({}, "default-hrtf"))
|
||||
{
|
||||
auto iter = std::find(mHrtfList.begin(), mHrtfList.end(), *defhrtfopt);
|
||||
if(iter == mHrtfList.end())
|
||||
|
|
@ -85,6 +88,7 @@ auto ALCdevice::getOutputMode1() const noexcept -> OutputMode1
|
|||
case DevFmtX61: return OutputMode1::X61;
|
||||
case DevFmtX71: return OutputMode1::X71;
|
||||
case DevFmtX714:
|
||||
case DevFmtX7144:
|
||||
case DevFmtX3D71:
|
||||
case DevFmtAmbi3D:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue