update OpenAL-Soft to 1.24.3.

This commit is contained in:
Sasha Szpakowski
2025-05-03 12:51:37 -03:00
parent 375c6f88cd
commit 5e4f3241ac
322 changed files with 54386 additions and 12885 deletions
+5 -3
View File
@@ -3,10 +3,12 @@
#include "mixer.h"
#include <algorithm>
#include <cmath>
#include <utility>
#include "alnumbers.h"
#include "devformat.h"
#include "core/ambidefs.h"
#include "device.h"
#include "mixer/defs.h"
@@ -85,9 +87,9 @@ std::array<float,MaxAmbiChannels> CalcAmbiCoeffs(const float y, const float z, c
void ComputePanGains(const MixParams *mix, const al::span<const float,MaxAmbiChannels> coeffs,
const float ingain, const al::span<float,MaxAmbiChannels> gains)
{
auto ambimap = mix->AmbiMap.cbegin();
auto ambimap = al::span{std::as_const(mix->AmbiMap)}.first(mix->Buffer.size());
auto iter = std::transform(ambimap, ambimap+mix->Buffer.size(), gains.begin(),
auto iter = std::transform(ambimap.begin(), ambimap.end(), gains.begin(),
[coeffs,ingain](const BFChannelConfig &chanmap) noexcept -> float
{ return chanmap.Scale * coeffs[chanmap.Index] * ingain; });
std::fill(iter, gains.end(), 0.0f);