diff options
author | Chris Robinson <[email protected]> | 2020-10-21 16:39:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-10-21 16:39:21 -0700 |
commit | 3e62600ecc3c2f1be4da0d3e8166f5c67cc25fed (patch) | |
tree | a33bb31c8c8d53f96a2112c7f8edb91a190df5e6 /alc/mixer/hrtfbase.h | |
parent | b8f5e1f4247e8a1d1ebdbe39dad6b235d6d50daa (diff) |
Replace some more macros with constexpr variables
Diffstat (limited to 'alc/mixer/hrtfbase.h')
-rw-r--r-- | alc/mixer/hrtfbase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/mixer/hrtfbase.h b/alc/mixer/hrtfbase.h index 4ec6c95d..1b76e66d 100644 --- a/alc/mixer/hrtfbase.h +++ b/alc/mixer/hrtfbase.h @@ -48,7 +48,7 @@ inline void MixHrtfBlendBase(const float *InSamples, float2 *RESTRICT AccumSampl const auto &NewCoeffs = *newparams->Coeffs; const float newGainStep{newparams->GainStep}; - if LIKELY(oldparams->Gain > GAIN_SILENCE_THRESHOLD) + if LIKELY(oldparams->Gain > GainSilenceThreshold) { size_t ldelay{HRTF_HISTORY_LENGTH - oldparams->Delay[0]}; size_t rdelay{HRTF_HISTORY_LENGTH - oldparams->Delay[1]}; @@ -64,7 +64,7 @@ inline void MixHrtfBlendBase(const float *InSamples, float2 *RESTRICT AccumSampl } } - if LIKELY(newGainStep*static_cast<float>(BufferSize) > GAIN_SILENCE_THRESHOLD) + if LIKELY(newGainStep*static_cast<float>(BufferSize) > GainSilenceThreshold) { size_t ldelay{HRTF_HISTORY_LENGTH+1 - newparams->Delay[0]}; size_t rdelay{HRTF_HISTORY_LENGTH+1 - newparams->Delay[1]}; |