mirror of
https://github.com/love2d/megasource.git
synced 2026-08-20 04:30:45 +02:00
update OpenAL-Soft to 1.24.3.
This commit is contained in:
@@ -3,34 +3,33 @@
|
||||
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#include <stddef.h>
|
||||
#include <type_traits>
|
||||
#include <cstddef>
|
||||
|
||||
#include "alspan.h"
|
||||
#include "ambidefs.h"
|
||||
#include "bufferline.h"
|
||||
#include "devformat.h"
|
||||
#include "opthelpers.h"
|
||||
|
||||
struct MixParams;
|
||||
|
||||
/* Mixer functions that handle one input and multiple output channels. */
|
||||
using MixerOutFunc = void(*)(const al::span<const float> InSamples,
|
||||
const al::span<FloatBufferLine> OutBuffer, float *CurrentGains, const float *TargetGains,
|
||||
const size_t Counter, const size_t OutPos);
|
||||
const al::span<FloatBufferLine> OutBuffer, const al::span<float> CurrentGains,
|
||||
const al::span<const float> TargetGains, const std::size_t Counter, const std::size_t OutPos);
|
||||
|
||||
extern MixerOutFunc MixSamplesOut;
|
||||
DECL_HIDDEN extern MixerOutFunc MixSamplesOut;
|
||||
inline void MixSamples(const al::span<const float> InSamples,
|
||||
const al::span<FloatBufferLine> OutBuffer, float *CurrentGains, const float *TargetGains,
|
||||
const size_t Counter, const size_t OutPos)
|
||||
const al::span<FloatBufferLine> OutBuffer, const al::span<float> CurrentGains,
|
||||
const al::span<const float> TargetGains, const std::size_t Counter, const std::size_t OutPos)
|
||||
{ MixSamplesOut(InSamples, OutBuffer, CurrentGains, TargetGains, Counter, OutPos); }
|
||||
|
||||
/* Mixer functions that handle one input and one output channel. */
|
||||
using MixerOneFunc = void(*)(const al::span<const float> InSamples, float *OutBuffer,
|
||||
float &CurrentGain, const float TargetGain, const size_t Counter);
|
||||
using MixerOneFunc = void(*)(const al::span<const float> InSamples,const al::span<float> OutBuffer,
|
||||
float &CurrentGain, const float TargetGain, const std::size_t Counter);
|
||||
|
||||
extern MixerOneFunc MixSamplesOne;
|
||||
inline void MixSamples(const al::span<const float> InSamples, float *OutBuffer, float &CurrentGain,
|
||||
const float TargetGain, const size_t Counter)
|
||||
DECL_HIDDEN extern MixerOneFunc MixSamplesOne;
|
||||
inline void MixSamples(const al::span<const float> InSamples, const al::span<float> OutBuffer,
|
||||
float &CurrentGain, const float TargetGain, const std::size_t Counter)
|
||||
{ MixSamplesOne(InSamples, OutBuffer, CurrentGain, TargetGain, Counter); }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user