diff options
author | Chris Robinson <[email protected]> | 2022-12-18 20:34:44 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-12-18 20:34:44 -0800 |
commit | a0d5cc0d0e96b9c36c7721810acbe74373a96111 (patch) | |
tree | befe661d55107537a8e33e7938c4864330ee52a6 | |
parent | 6753601b1570876ffa6ac36f8a5fde10c35a9a7c (diff) |
Use a size_t for the reverb decay fade count
-rw-r--r-- | alc/effects/reverb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp index 47dd738d..cc1d86e7 100644 --- a/alc/effects/reverb.cpp +++ b/alc/effects/reverb.cpp @@ -424,7 +424,7 @@ struct ReverbPipeline { std::array<std::array<BandSplitter,NUM_LINES>,2> mAmbiSplitter; - uint mFadeSampleCount{1}; + size_t mFadeSampleCount{1}; void updateDelayLine(const float earlyDelay, const float lateDelay, const float density_mult, const float decayTime, const float frequency); @@ -1219,7 +1219,7 @@ void ReverbState::update(const ContextBase *Context, const EffectSlot *Slot, props->Reverb.DecayTime, hfDecayTime, lf0norm, hf0norm, frequency); const float decayCount{minf(props->Reverb.DecayTime*frequency, 1'000'000.0f)}; - pipeline.mFadeSampleCount = static_cast<uint>(decayCount); + pipeline.mFadeSampleCount = static_cast<size_t>(decayCount); } } |