mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
update openal-soft to 1.24.3
keeping the alt 87514151c4 (diff-73a8dc1ce58605f6c5ea53548454c3bae516ec5132a29c9d7ff7edf9730c75be)
This commit is contained in:
parent
12db0500e8
commit
ba32094b7b
276 changed files with 49304 additions and 8712 deletions
|
|
@ -27,13 +27,14 @@ using voidp = void*;
|
|||
|
||||
} // namespace
|
||||
|
||||
namespace al {
|
||||
|
||||
ALCdevice::ALCdevice(DeviceType type) : DeviceBase{type}
|
||||
Device::Device(DeviceType type) : DeviceBase{type}
|
||||
{ }
|
||||
|
||||
ALCdevice::~ALCdevice()
|
||||
Device::~Device()
|
||||
{
|
||||
TRACE("Freeing device %p\n", voidp{this});
|
||||
TRACE("Freeing device {}", voidp{this});
|
||||
|
||||
Backend = nullptr;
|
||||
|
||||
|
|
@ -41,35 +42,35 @@ ALCdevice::~ALCdevice()
|
|||
[](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");
|
||||
WARN("{} Buffer{} not deleted", count, (count==1)?"":"s");
|
||||
|
||||
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");
|
||||
WARN("{} Effect{} not deleted", count, (count==1)?"":"s");
|
||||
|
||||
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)
|
||||
WARN("%zu Filter%s not deleted\n", count, (count==1)?"":"s");
|
||||
WARN("{} Filter{} not deleted", count, (count==1)?"":"s");
|
||||
}
|
||||
|
||||
void ALCdevice::enumerateHrtfs()
|
||||
void Device::enumerateHrtfs()
|
||||
{
|
||||
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())
|
||||
WARN("Failed to find default HRTF \"%s\"\n", defhrtfopt->c_str());
|
||||
WARN("Failed to find default HRTF \"{}\"", *defhrtfopt);
|
||||
else if(iter != mHrtfList.begin())
|
||||
std::rotate(mHrtfList.begin(), iter, iter+1);
|
||||
}
|
||||
}
|
||||
|
||||
auto ALCdevice::getOutputMode1() const noexcept -> OutputMode1
|
||||
auto Device::getOutputMode1() const noexcept -> OutputMode1
|
||||
{
|
||||
if(mContexts.load(std::memory_order_relaxed)->empty())
|
||||
return OutputMode1::Any;
|
||||
|
|
@ -95,3 +96,5 @@ auto ALCdevice::getOutputMode1() const noexcept -> OutputMode1
|
|||
}
|
||||
return OutputMode1::Any;
|
||||
}
|
||||
|
||||
} // namespace al
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue