diff options
author | Chris Robinson <[email protected]> | 2020-11-20 03:59:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-11-20 03:59:14 -0800 |
commit | c3cb09aa0cd8a7e9deeab736087cd8db7298743b (patch) | |
tree | f1b81049b4fdea863b763da7969d13c842022021 /alc/mixer/hrtfbase.h | |
parent | f85e76285f8ad0824f6d6b1e02bb468597b006d4 (diff) |
Avoid AL types in the mixer
Diffstat (limited to 'alc/mixer/hrtfbase.h')
-rw-r--r-- | alc/mixer/hrtfbase.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/alc/mixer/hrtfbase.h b/alc/mixer/hrtfbase.h index 1b76e66d..96cc1c98 100644 --- a/alc/mixer/hrtfbase.h +++ b/alc/mixer/hrtfbase.h @@ -9,11 +9,13 @@ #include "voice.h" +using uint = unsigned int; + using ApplyCoeffsT = void(&)(float2 *RESTRICT Values, const uint_fast32_t irSize, const HrirArray &Coeffs, const float left, const float right); template<ApplyCoeffsT ApplyCoeffs> -inline void MixHrtfBase(const float *InSamples, float2 *RESTRICT AccumSamples, const ALuint IrSize, +inline void MixHrtfBase(const float *InSamples, float2 *RESTRICT AccumSamples, const uint IrSize, const MixHrtfFilter *hrtfparams, const size_t BufferSize) { ASSUME(BufferSize > 0); @@ -38,7 +40,7 @@ inline void MixHrtfBase(const float *InSamples, float2 *RESTRICT AccumSamples, c template<ApplyCoeffsT ApplyCoeffs> inline void MixHrtfBlendBase(const float *InSamples, float2 *RESTRICT AccumSamples, - const ALuint IrSize, const HrtfFilter *oldparams, const MixHrtfFilter *newparams, + const uint IrSize, const HrtfFilter *oldparams, const MixHrtfFilter *newparams, const size_t BufferSize) { ASSUME(BufferSize > 0); |