Update OpenAL-soft to 1.23.1-bc7cb17.

This commit is contained in:
Miku AuahDark
2024-03-20 11:06:03 +08:00
parent 4a512be715
commit 73a6fc9196
294 changed files with 44342 additions and 40077 deletions
+7 -8
View File
@@ -2,10 +2,12 @@
#define CORE_EFFECTSLOT_H
#include <atomic>
#include <memory>
#include "almalloc.h"
#include "device.h"
#include "effects/base.h"
#include "flexarray.h"
#include "intrusive_ptr.h"
struct EffectSlot;
@@ -45,12 +47,12 @@ struct EffectSlotProps {
al::intrusive_ptr<EffectState> State;
std::atomic<EffectSlotProps*> next;
DEF_NEWDEL(EffectSlotProps)
};
struct EffectSlot {
bool InUse{false};
std::atomic<EffectSlotProps*> Update{nullptr};
/* Wet buffer configuration is ACN channel order with N3D scaling.
@@ -66,7 +68,7 @@ struct EffectSlot {
EffectSlotType EffectType{EffectSlotType::None};
EffectProps mEffectProps{};
EffectState *mEffectState{nullptr};
al::intrusive_ptr<EffectState> mEffectState;
float RoomRolloff{0.0f}; /* Added to the source's room rolloff, not multiplied. */
float DecayTime{0.0f};
@@ -76,13 +78,10 @@ struct EffectSlot {
float AirAbsorptionGainHF{1.0f};
/* Mixing buffer used by the Wet mix. */
WetBuffer *mWetBuffer{nullptr};
al::vector<FloatBufferLine,16> mWetBuffer;
~EffectSlot();
static EffectSlotArray *CreatePtrArray(size_t count) noexcept;
DISABLE_ALLOC()
static std::unique_ptr<EffectSlotArray> CreatePtrArray(size_t count);
};
#endif /* CORE_EFFECTSLOT_H */