aboutsummaryrefslogtreecommitdiffstats
path: root/alc/hrtf.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-03 13:05:42 -0700
committerChris Robinson <[email protected]>2019-08-03 13:05:42 -0700
commit13222d719d7a38b46cf0b02771acffea5d569d46 (patch)
tree89b2fcdef867c1872acdf8b0058b63d448323dd1 /alc/hrtf.cpp
parent341743680415c4b3339d36fc4e67ab8a605a06ea (diff)
Make a couple counts size_t
Diffstat (limited to 'alc/hrtf.cpp')
-rw-r--r--alc/hrtf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp
index a8b56019..590d102a 100644
--- a/alc/hrtf.cpp
+++ b/alc/hrtf.cpp
@@ -389,7 +389,7 @@ void BuildBFormatHrtf(const HrtfEntry *Hrtf, DirectHrtfState *state, const ALuin
* sample array. This produces the forward response with a backwards
* phase-shift (+n degrees becomes -n degrees).
*/
- splitter.applyAllpass(tmpfilt[2].data(), static_cast<int>(tmpfilt[2].size()));
+ splitter.applyAllpass(tmpfilt[2].data(), tmpfilt[2].size());
std::reverse(tmpfilt[2].begin(), tmpfilt[2].end());
/* Now apply the band-splitter. This applies the normal phase-shift,
@@ -398,7 +398,7 @@ void BuildBFormatHrtf(const HrtfEntry *Hrtf, DirectHrtfState *state, const ALuin
*/
splitter.clear();
splitter.process(tmpfilt[0].data(), tmpfilt[1].data(), tmpfilt[2].data(),
- static_cast<int>(tmpfilt[2].size()));
+ tmpfilt[2].size());
/* Apply left ear response with delay and HF scale. */
for(ALuint i{0u};i < NumChannels;++i)
@@ -415,12 +415,12 @@ void BuildBFormatHrtf(const HrtfEntry *Hrtf, DirectHrtfState *state, const ALuin
std::transform(fir, fir+Hrtf->irSize, tmpfilt[2].rbegin() + HRIR_LENGTH*3,
[](const ALfloat (&ir)[2]) noexcept -> ALdouble { return ir[1]; });
- splitter.applyAllpass(tmpfilt[2].data(), static_cast<int>(tmpfilt[2].size()));
+ splitter.applyAllpass(tmpfilt[2].data(), tmpfilt[2].size());
std::reverse(tmpfilt[2].begin(), tmpfilt[2].end());
splitter.clear();
splitter.process(tmpfilt[0].data(), tmpfilt[1].data(), tmpfilt[2].data(),
- static_cast<int>(tmpfilt[2].size()));
+ tmpfilt[2].size());
for(ALuint i{0u};i < NumChannels;++i)
{